Skip to content

Commit 746adfa

Browse files
committed
test: ensure single mongos
1 parent 52d9447 commit 746adfa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/integration/retryable-reads/retryable_reads.spec.prose.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ describe('Retryable Reads Spec Prose', () => {
2727
let testCollection: Collection;
2828
beforeEach(async function () {
2929
// 1. Create a client with maxPoolSize=1 and retryReads=true.
30-
// If testing against a sharded deployment, be sure to connect to only a single mongos. <-- TODO: what does that look like?
3130
client = this.configuration.newClient({
3231
maxPoolSize: 1,
3332
retryReads: true,
34-
monitorCommands: true
33+
monitorCommands: true,
34+
useMultipleMongoses: false // If testing against a sharded deployment, be sure to connect to only a single mongos.
3535
});
3636

3737
testCollection = client.db('retryable-reads-prose').collection('pool-clear-retry');

test/integration/retryable-writes/retryable_writes.spec.prose.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ describe('Retryable Writes Spec Prose', () => {
7979
let testCollection: Collection;
8080
beforeEach(async function () {
8181
// i. Create a client with maxPoolSize=1 and retryWrites=true.
82-
// If testing against a sharded deployment, be sure to connect to only a single mongos. <-- TODO: what does that look like?
8382
client = this.configuration.newClient({
8483
maxPoolSize: 1,
8584
retryWrites: true,
86-
monitorCommands: true
85+
monitorCommands: true,
86+
useMultipleMongoses: false // If testing against a sharded deployment, be sure to connect to only a single mongos.
8787
});
8888

8989
testCollection = client.db('retryable-writes-prose').collection('pool-clear-retry');

0 commit comments

Comments
 (0)