Skip to content

Commit 85efcfc

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[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 <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]>
1 parent a09b955 commit 85efcfc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/shared/helper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ async function performActionOnSelector(
8787
await drainFrontendTaskQueue();
8888
return element;
8989
} catch {
90-
// A bit of delay to not retry too often.
91-
await new Promise(resolve => setTimeout(resolve, 50));
90+
return undefined;
9291
}
93-
return undefined;
9492
});
9593
}
9694

0 commit comments

Comments
 (0)