Skip to content

Commit c9ed990

Browse files
committed
Fixed tests
1 parent 208c9e4 commit c9ed990

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal-packages/run-engine/src/engine/tests/attemptFailures.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,8 @@ describe("RunEngine attempt failures", () => {
770770
expect(executionData.run.attemptNumber).toBe(1);
771771
expect(executionData.run.status).toBe("RETRYING_AFTER_FAILURE");
772772

773-
//wait for 1s
774-
await setTimeout(5_000);
773+
await engine.runQueue.processMasterQueueForEnvironment(authenticatedEnvironment.id);
775774

776-
//dequeue again
777-
await setTimeout(500);
778775
const dequeued2 = await engine.dequeueFromWorkerQueue({
779776
consumerId: "test_12345",
780777
workerQueue: "main",

0 commit comments

Comments
 (0)