File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,8 @@ function createMultipleTabsTest(vfs?: WASQLiteVFS) {
372372 const tabsToKeep = tabs . slice ( 0 , halfCount ) ;
373373
374374 // Close half the tabs simultaneously (without proper cleanup)
375- const closePromises = tabsToClose . map ( ( tab ) => tab . cleanup ( ) ) ;
375+ // Do this in reverse order to ensure the last connected tab is closed first.
376+ const closePromises = tabsToClose . reverse ( ) . map ( ( tab ) => tab . cleanup ( ) ) ;
376377 await Promise . all ( closePromises ) ;
377378
378379 // Verify closed tabs are removed
@@ -449,7 +450,6 @@ function createMultipleTabsTest(vfs?: WASQLiteVFS) {
449450 await vi . waitFor (
450451 async ( ) => {
451452 const credentialsFetchCount = await newTab . getCredentialsFetchCount ( ) ;
452- console . log ( 'credentialsFetchCount' , credentialsFetchCount ) ;
453453 expect (
454454 credentialsFetchCount ,
455455 'The new client should have been asked for credentials by the shared sync worker. ' +
You can’t perform that action at this time.
0 commit comments