aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/runner/run.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/runner/run.js b/test/runner/run.js
index 9f7a38aa7..4874fb6f9 100644
--- a/test/runner/run.js
+++ b/test/runner/run.js
@@ -170,21 +170,21 @@ export async function run( {
async function cleanup() {
console.log( "Cleaning up..." );
+ await cleanupAllBrowsers( { verbose } );
+ cleanupAllJSDOM( { verbose } );
+
if ( tunnel ) {
await tunnel.stop();
if ( verbose ) {
console.log( "Stopped BrowserStackLocal." );
}
}
-
- await cleanupAllBrowsers( { verbose } );
- cleanupAllJSDOM( { verbose } );
}
asyncExitHook(
async() => {
- await stopServer();
await cleanup();
+ await stopServer();
},
{ wait: EXIT_HOOK_WAIT_TIMEOUT }
);