mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
[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:
committed by
Devtools-frontend LUCI CQ
parent
a09b95541f
commit
85efcfc2ba
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user