We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9600b5 + a59992b commit ac65818Copy full SHA for ac65818
test.js
@@ -21,7 +21,10 @@ function runTests () {
21
const client = AsyncMQTT.connect(SERVER_URL);
22
23
t.ok(client instanceof AsyncClient, 'Connect returned an AsyncClient');
24
- client.end();
+
25
+ client.on('connect', () => {
26
+ client.end();
27
+ })
28
});
29
30
test('Should be able to listen on event on client', t => {
0 commit comments