Skip to content

Commit 10f4293

Browse files
committed
test: correctly wrap options
1 parent 746adfa commit 10f4293

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ 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-
client = this.configuration.newClient({
31-
maxPoolSize: 1,
32-
retryReads: true,
33-
monitorCommands: true,
34-
useMultipleMongoses: false // If testing against a sharded deployment, be sure to connect to only a single mongos.
35-
});
30+
client = this.configuration.newClient(
31+
this.configuration.url({
32+
useMultipleMongoses: false // If testing against a sharded deployment, be sure to connect to only a single mongos.
33+
}),
34+
{ maxPoolSize: 1, retryReads: true, monitorCommands: true }
35+
);
36+
37+
console.log(client.options);
3638

3739
testCollection = client.db('retryable-reads-prose').collection('pool-clear-retry');
3840
await testCollection.drop().catch(() => null);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ 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-
client = this.configuration.newClient({
83-
maxPoolSize: 1,
84-
retryWrites: true,
85-
monitorCommands: true,
86-
useMultipleMongoses: false // If testing against a sharded deployment, be sure to connect to only a single mongos.
87-
});
82+
client = this.configuration.newClient(
83+
this.configuration.url({
84+
useMultipleMongoses: false // If testing against a sharded deployment, be sure to connect to only a single mongos.
85+
}),
86+
{ maxPoolSize: 1, retryWrites: true, monitorCommands: true }
87+
);
8888

8989
testCollection = client.db('retryable-writes-prose').collection('pool-clear-retry');
9090
await testCollection.drop().catch(() => null);

0 commit comments

Comments
 (0)