Skip to content

Commit b35362b

Browse files
whatsruppnodkz
authored andcommitted
docs: correct variable in replica set instructions (#243)
1 parent 04a0a8c commit b35362b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ const replSet = new MongoMemoryReplSet({
171171
replSet: { storageEngine: 'wiredTiger' },
172172
});
173173
await replSet.waitUntilRunning();
174-
const uri = await mongod.getConnectionString();
174+
const uri = await replSet.getConnectionString();
175175
// or you may obtain the connection config parts:
176-
// const port = await mongod.getPort();
177-
// const dbPath = await mongod.getDbPath();
178-
// const dbName = await mongod.getDbName();
176+
// const port = await replSet.getPort();
177+
// const dbPath = await replSet.getDbPath();
178+
// const dbName = await replSet.getDbName();
179179

180180
// some code, eg. for mongoose
181181
mongoose.set('useFindAndModify', false);

0 commit comments

Comments
 (0)