Skip to content

Commit 1a9233e

Browse files
committed
Make waitpoint race condition test less flaky
1 parent 7e69661 commit 1a9233e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe("RunEngine Waitpoints – race condition", () => {
8282
projectId: env.projectId,
8383
});
8484

85-
engine.registerRacepointForRun({ runId: run.id, waitInterval: 1000 });
85+
engine.registerRacepointForRun({ runId: run.id, waitInterval: 500 });
8686

8787
// complete the waitpoint (this will schedule a continueRunIfUnblocked job normally)
8888
await engine.completeWaitpoint({ id: waitpoint.id });
@@ -101,8 +101,6 @@ describe("RunEngine Waitpoints – race condition", () => {
101101
where: { taskRunId: run.id, waitpointId: waitpoint2.id },
102102
});
103103

104-
console.log("joinRow", joinRow);
105-
106104
// Intentionally expect it to still be there – current implementation erroneously deletes it so test fails.
107105
expect(joinRow).not.toBeNull();
108106
} finally {

0 commit comments

Comments
 (0)