8000 Tests: fix cleanup in cases where server doesn't stop · jquery/jquery@08f1b40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08f1b40

Browse files
committed
Tests: fix cleanup in cases where server doesn't stop
1 parent 8ddf1dd commit 08f1b40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runner/run.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,21 +170,21 @@ export async function run( {
170170
async function cleanup() {
171171
console.log( "Cleaning up..." );
172172

173+
await cleanupAllBrowsers( { verbose } );
174+
cleanupAllJSDOM( { verbose } );
175+
173176
if ( tunnel ) {
174177
await tunnel.stop();
175178
if ( verbose ) {
176179
console.log( "Stopped BrowserStackLocal." );
177180
}
178181
}
179-
180-
await cleanupAllBrowsers( { verbose } );
181-
cleanupAllJSDOM( { verbose } );
182182
}
183183

184184
asyncExitHook(
185185
async() => {
186-
await stopServer();
187186
await cleanup();
187+
await stopServer();
188188
},
189189
{ wait: EXIT_HOOK_WAIT_TIMEOUT }
190190
);

0 commit comments

Comments
 (0)
0