We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65f333 commit ab724d5Copy full SHA for ab724d5
integration/test/helper.js
@@ -10,6 +10,7 @@ const Parse = require('../../node');
10
const fs = require('fs').promises;
11
const path = require('path');
12
const dns = require('dns');
13
+const sleep = require('./sleep');
14
const MockEmailAdapterWithOptions = require('./support/MockEmailAdapterWithOptions');
15
16
// Ensure localhost resolves to ipv4 address first on node v17+
@@ -99,6 +100,8 @@ const reconfigureServer = async (changedConfiguration = {}) => {
99
100
if (parseServer) {
101
try {
102
await parseServer.handleShutdown();
103
+ // Connection close events are not immediate on node 10+, so wait a bit
104
+ sleep(0);
105
} catch (e) {
106
console.error('Failed to shutdown the server', e);
107
}
0 commit comments