[test] Don't add extra 50 ms to wait to actions

Should improve performance on fail.
The waitForFunction already handle the extra timeout.

Bug: none
Change-Id: I9a7039eea2b02642337fa47679d64f14d0fd0ae0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6264206
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
This commit is contained in:
Nikolay Vitkov
2025-02-13 08:16:44 -08:00
committed by Devtools-frontend LUCI CQ
parent a09b95541f
commit 85efcfc2ba
+1 -3
View File
@@ -87,10 +87,8 @@ async function performActionOnSelector(
await drainFrontendTaskQueue();
return element;
} catch {
// A bit of delay to not retry too often.
await new Promise(resolve => setTimeout(resolve, 50));
return undefined;
}
return undefined;
});
}