Skip to content

Commit d571c9b

Browse files
committed
use setTimeout instead of page.waitForTimeout
1 parent b2e1708 commit d571c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/processSnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
674674
break;
675675
}
676676
ctx.log.debug('Pending requests:', Array.from(pendingRequests.keys()));
677-
await page.waitForTimeout(1000);
677+
await new Promise(resolve => setTimeout(resolve, 1000));
678678
}
679679
ctx.log.debug('No pending requests.');
680680
};

0 commit comments

Comments
 (0)