Skip to content

Commit

Permalink
tests: fix event race condition in test streaming destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 13, 2015
1 parent a783de6 commit 36d6449
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/query/test-streaming-destroy.js
Expand Up @@ -14,6 +14,9 @@ server.listen(common.fakeServerPort, function (err) {
count++;
assert.equal(count, 1);
connection.destroy();
server.destroy();

process.nextTick(function () {
server.destroy();
});
});
});

0 comments on commit 36d6449

Please sign in to comment.