fix(transport): make close listener test more resilient (#21)

This commit is contained in:
Jacob Heun 2020-01-21 16:06:13 +01:00 committed by GitHub
parent aacb0e27d0
commit 2de533e15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ module.exports = (common) => {
]) ])
// Give the listener a chance to finish its upgrade // Give the listener a chance to finish its upgrade
await new Promise(resolve => setTimeout(resolve, 0)) await pWaitFor(() => listenerConns.length === 2)
// Wait for the data send and close to finish // Wait for the data send and close to finish
await Promise.all([ await Promise.all([