Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add short delay when shutting event test server down
  • Loading branch information
cgewecke committed Jan 30, 2020
commit 04f3528c9a17435a0506c44ac8b163a5660f1cb4
6 changes: 5 additions & 1 deletion test/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ describe("Server:", function(done) {

after("Shutdown server", function(done) {
web3._provider.connection.close();
server.close(done);

// Give web3 a little time to close connection.
setTimeout(function() {
server.close(done);
}, 150);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, zero isn't enough. Idk.

});
});