Skip to content

Commit 1ac26a4

Browse files
carderneTrigger.dev RepoOps
authored andcommitted
test(run-engine): fix flakey external deployment test
Prevents the external deployment parking test from racing with worker setup's automatic background scheduling. The test now suppresses helper-generated jobs and invokes the resolver only after both deployment candidates exist. Verified with 10 consecutive targeted test runs. Mono-RevId: 1c2d072a208ea0eda1c47653d1346d01f0a7b9a5
1 parent 2f449e7 commit 1ac26a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ describe("RunEngine external deployment parking", () => {
373373
"pins to the highest deployed version holding the id, even when an older build of that id finalizes last",
374374
async ({ prisma, redisOptions }) => {
375375
const authenticatedEnvironment = await setupAuthenticatedEnvironment(prisma, "PRODUCTION");
376-
const engine = createEngine(prisma, redisOptions);
376+
const engine = createEngine(prisma, redisOptions, {
377+
worker: { redis: redisOptions, disabled: true },
378+
});
377379

378380
try {
379381
const taskIdentifier = "test-task";

0 commit comments

Comments
 (0)