Skip to content

Commit

Permalink
fix: Fixes mongo oplog test caused by race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobo committed Sep 29, 2022
1 parent 70bab52 commit 50ce191
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/driver/mongo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ for (const s of suites) {

// Makes sure the oplog is used to minimize polling load
// all other times, we'll a 1ms poll to move through tests as fast as possible
(ENABLED ? test : test.skip)(
// this test is marked serial because nobody else can be using the oplog while
// we test this functionality or else we'd see a race condition
(ENABLED ? test.serial : test.skip)(
"Leverages the oplog to minimize polling",
async (t) => {
const queue = new Queue<StringJob>(t.context.driver, v4());
Expand Down

0 comments on commit 50ce191

Please sign in to comment.