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

Commit

Permalink
Add short delay when shutting event test server down
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Jan 30, 2020
1 parent 9a4a991 commit 04f3528
Showing 1 changed file with 5 additions and 1 deletion.
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);
});
});

0 comments on commit 04f3528

Please sign in to comment.