Merge pull request #20539 from backstage/freben/wait
update the wait action test a bit
This commit is contained in:
+2
-2
@@ -53,7 +53,7 @@ describe('debug:wait examples', () => {
|
||||
const start = new Date().getTime();
|
||||
await action.handler(context);
|
||||
const end = new Date().getTime();
|
||||
expect(end - start).toBeGreaterThanOrEqual(45);
|
||||
expect(end - start).toBeLessThanOrEqual(55);
|
||||
expect(end - start).toBeGreaterThanOrEqual(45); // should rarely by markedly less
|
||||
expect(end - start).toBeLessThanOrEqual(500); // can get delayed a bit in CI
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user