Skip to content

Commit 9730337

Browse files
cleanup tests
1 parent c6ba9f6 commit 9730337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web/tests/multiple_tabs_iframe.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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. ' +

0 commit comments

Comments
 (0)