fix(tests): correct timeout duration in clock pause test (#35522)

This commit is contained in:
Max Schmitt 2025-04-07 21:38:10 +01:00 committed by GitHub
parent 650af1726b
commit 9cb05c56f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -437,8 +437,8 @@ it.describe('while running', () => {
await page.clock.install({ time: 0 });
await page.goto('data:text/html,');
await page.clock.pauseAt(1000);
await page.waitForTimeout(1000);
await page.clock.resume();
// Internally wait to make sure the clock is paused and not running.
await page.waitForTimeout(1111);
const now = await page.evaluate(() => Date.now());
expect(now).toBeGreaterThanOrEqual(0);
expect(now).toBeLessThanOrEqual(1000);