mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Try solving flaky unit test by switch to use different implementation of setImmediate (#5655)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
1 parent
5c049ecca0
commit
9c420d6f1e
2 files changed
+5
-2
No files matched your search
@@ -2,4 +2,6 @@
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
export const flushPromises = () => new Promise(resolve => setTimeout(resolve, 0));
|
||||
import { setImmediate } from "timers";
|
||||
|
||||
export const flushPromises = () => new Promise(setImmediate);
|
||||
Reference in new issue
Block a user