Skip to content

Commit

Permalink
remove puback validation?
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Aug 21, 2024
1 parent 7bb3052 commit 9b1f2c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/mqtt5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,6 @@ export async function subPubUnsubTest(client: mqtt5.Mqtt5Client, qos: mqtt5.QoS,
payload: testPayload
});

expect(puback.reasonCode).toEqual(qos)


await messageReceived;

const unsuback = await client.unsubscribe({
Expand Down Expand Up @@ -463,6 +460,7 @@ export async function nullSubscribeTest(client: mqtt5.Mqtt5Client) {
client.start();
await connected;

// @ts-ignore
await expect(client.subscribe(null)).rejects.toThrow();

client.stop();
Expand All @@ -478,6 +476,7 @@ export async function nullUnsubscribeTest(client: mqtt5.Mqtt5Client) {
client.start();
await connected;

// @ts-ignore
await expect(client.unsubscribe(null)).rejects.toThrow();

client.stop();
Expand All @@ -493,6 +492,7 @@ export async function nullPublishTest(client: mqtt5.Mqtt5Client) {
client.start();
await connected;

// @ts-ignore
await expect(client.publish(null)).rejects.toThrow();

client.stop();
Expand Down

0 comments on commit 9b1f2c3

Please sign in to comment.