chore: removing the log10 and just do linear backoff

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-10-26 14:27:33 +02:00
parent 38ad8746c0
commit 65bf24bc1d
+1 -1
View File
@@ -133,7 +133,7 @@ export async function waitForPageWithText(
let findAttempts = 0;
for (;;) {
try {
const waitTimeMs = intervalMs * (Math.log10(findAttempts + 1) + 1);
const waitTimeMs = intervalMs * (findAttempts + 1);
console.log(`Attempting to load page at ${path}, waiting ${waitTimeMs}`);
await new Promise(resolve => setTimeout(resolve, waitTimeMs));