Skip to content

Commit a3e578b

Browse files
committed
test(supervisor): cover both backpressure sources enabled together
1 parent 3179918 commit a3e578b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

apps/supervisor/src/env.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,15 @@ describe("Env superRefine - backpressure source awareness", () => {
3939
})
4040
).toThrow();
4141
});
42+
43+
it("both sources can be enabled together (with a Redis host)", () => {
44+
expect(() =>
45+
Env.parse({
46+
...base,
47+
TRIGGER_DEQUEUE_BACKPRESSURE_ENABLED: "true",
48+
TRIGGER_DEQUEUE_BACKPRESSURE_REDIS_HOST: "localhost",
49+
TRIGGER_DEQUEUE_BACKPRESSURE_POD_COUNT_ENABLED: "true",
50+
})
51+
).not.toThrow();
52+
});
4253
});

0 commit comments

Comments
 (0)