Skip to content

Commit 733980c

Browse files
committed
bump timeouts
1 parent 257540a commit 733980c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/integration/client-side-operations-timeout/node_csot.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ describe('CSOT driver tests', metadata, () => {
587587
data: {
588588
failCommands: ['aggregate', 'find'],
589589
blockConnection: true,
590-
blockTimeMS: 50
590+
blockTimeMS: 100
591591
}
592592
};
593593

@@ -636,7 +636,7 @@ describe('CSOT driver tests', metadata, () => {
636636
cursor = client
637637
.db('db')
638638
.collection('coll')
639-
.find({}, { timeoutMS: 30, tailable: true, awaitData: true, batchSize: 1 });
639+
.find({}, { timeoutMS: 50, tailable: true, awaitData: true, batchSize: 1 });
640640
const maybeError = await cursor.next().then(
641641
() => null,
642642
e => e
@@ -648,9 +648,9 @@ describe('CSOT driver tests', metadata, () => {
648648
cursor = client
649649
.db('db')
650650
.collection('coll')
651-
.find({}, { timeoutMS: 100, tailable: true, awaitData: true, batchSize: 1 });
651+
.find({}, { timeoutMS: 150, tailable: true, awaitData: true, batchSize: 1 });
652652
for (let i = 0; i < 5; i++) {
653-
// Iterate cursor 5 times (server would have blocked for 250ms overall, but client
653+
// Iterate cursor 5 times (server would have blocked for 500ms overall, but client
654654
// should not throw
655655
await cursor.next();
656656
}
@@ -711,7 +711,7 @@ describe('CSOT driver tests', metadata, () => {
711711
cursor = client
712712
.db('db')
713713
.collection('coll')
714-
.find({}, { timeoutMS: 30, tailable: true, batchSize: 1 });
714+
.find({}, { timeoutMS: 50, tailable: true, batchSize: 1 });
715715
const maybeError = await cursor.next().then(
716716
() => null,
717717
e => e
@@ -723,9 +723,9 @@ describe('CSOT driver tests', metadata, () => {
723723
cursor = client
724724
.db('db')
725725
.collection('coll')
726-
.find({}, { timeoutMS: 100, tailable: true, batchSize: 1 });
726+
.find({}, { timeoutMS: 150, tailable: true, batchSize: 1 });
727727
for (let i = 0; i < 5; i++) {
728-
// Iterate cursor 5 times (server would have blocked for 250ms overall, but client
728+
// Iterate cursor 5 times (server would have blocked for 500ms overall, but client
729729
// should not throw
730730
await cursor.next();
731731
}

0 commit comments

Comments
 (0)