chore: fix tracing test in s2 mode (#24480)

This commit is contained in:
Pavel Feldman 2023-07-27 20:20:31 -07:00 committed by GitHub
parent b5d49d0849
commit 1277ec9900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,12 +342,12 @@ test('should survive browser.close with auto-created traces dir', async ({ brows
// Produce a lot of operations to make sure tracing operations are enqueued.
for (let i = 0; i < 100; i++)
page.evaluate('1 + 1').catch(() => {});
await page.waitForTimeout(10).catch(() => {});
await new Promise(f => setTimeout(f, 250));
}
}
void go();
await new Promise(f => setTimeout(f, 500));
await new Promise(f => setTimeout(f, 1000));
// Close the browser and give it some time to fail.
await Promise.all([