mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: fix cleanup in cases where server doesn't stop
This commit is contained in:
parent
5aa7ed888d
commit
0754d59664
@ -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 }
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user