Merge pull request #20539 from backstage/freben/wait

update the wait action test a bit
This commit is contained in:
Fredrik Adelöw
2023-10-11 23:14:31 +02:00
committed by GitHub
@@ -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
});
});