Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Fixed spurious MongoDB failures due to bad asynchronicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Jun 27, 2014
1 parent f9f4cca commit fac586f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/abstract_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1238,17 +1238,17 @@ module.exports = function(moscaSettings, createConnection) {
client.connect(opts);

client.on('connack', function(packet) {

client.publish({
topic: "hello",
qos: 0,
qos: 1,
payload: new Buffer("world world"),
messageId: 42,
retain: true
});
});

client.on('puback', function() {
client.stream.end();

cb();
});
});
Expand Down

0 comments on commit fac586f

Please sign in to comment.