Skip to content

Commit f0b453b

Browse files
committed
test(binding-mqtt): increse retries and correctly call done if error
1 parent a4af8c1 commit f0b453b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/binding-mqtt/test/mqtt-client-subscribe-test.integration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ describe("MQTT client implementation - integration", () => {
8989
}
9090
})
9191
.then(() => {
92-
for (let i = 0; i < 4; i++) {
92+
for (let i = 0; i < 5; i++) {
9393
thing.emitEvent(eventName, i);
9494
}
9595
})
9696
.catch((e) => {
97-
expect(true).to.equal(false);
97+
done(e);
9898
});
9999
});
100100
});
@@ -151,12 +151,12 @@ describe("MQTT client implementation - integration", () => {
151151
}
152152
})
153153
.then(() => {
154-
for (let i = 0; i < 4; i++) {
154+
for (let i = 0; i < 5; i++) {
155155
thing.emitEvent(eventName, i);
156156
}
157157
})
158158
.catch((e) => {
159-
expect(true).to.equal(false);
159+
done(e);
160160
});
161161
});
162162
});

0 commit comments

Comments
 (0)