Skip to content

Commit 36d6449

Browse files
committed
tests: fix event race condition in test streaming destroy
1 parent a783de6 commit 36d6449

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/query/test-streaming-destroy.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ server.listen(common.fakeServerPort, function (err) {
1414
count++;
1515
assert.equal(count, 1);
1616
connection.destroy();
17-
server.destroy();
17+
18+
process.nextTick(function () {
19+
server.destroy();
20+
});
1821
});
1922
});

0 commit comments

Comments
 (0)