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

Add short delay when shutting event test server down #545

Closed
wants to merge 1 commit into from
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
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.

});
});