Skip to content

Commit

Permalink
Close properly in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyuan committed Jan 3, 2016
1 parent da7ec69 commit 8d75043
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/mqtt.client-server.test.js
Expand Up @@ -128,7 +128,10 @@ describe('RemJson.Mqtt', function () {
err.timeout.should.equal(1000);
should.not.exist(error);
should.not.exist(result);
done();
client.close(function () {
mqttclient.connected.should.ok();
mqttclient.end(done);
});
});
});
});
Expand Down

0 comments on commit 8d75043

Please sign in to comment.