Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion js/src/internal/maintenance-batch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ describe("MaintenanceBatcher", () => {
});

it("resets the breaker when a batch succeeds", async () => {
const batcher = new MaintenanceBatcher({ random: () => 0, timeoutMs: 1 });
// Keep elapsed time fixed so CI scheduling cannot make the successful
// batch overrun 1 ms. Failed batches still exercise real timeout signals.
const { batcher } = setup(1);
const limit = batcher.breaker.limit;

for (let round = 0; round < 2; round++) {
Expand Down
Loading