From 04f3528c9a17435a0506c44ac8b163a5660f1cb4 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Wed, 29 Jan 2020 22:47:56 -0800 Subject: [PATCH] Add short delay when shutting event test server down --- test/events.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/events.js b/test/events.js index cccdb51253..ec4a1aa239 100644 --- a/test/events.js +++ b/test/events.js @@ -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); }); });