Skip to content

Commit 38d1de8

Browse files
committed
test(replset-multi): remove variable "opts"
1 parent 49c710d commit 38d1de8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/mongodb-memory-server-core/src/__tests__/replset-multi-test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;
55

66
describe('multi-member replica set', () => {
77
it('should enter running state', async () => {
8-
const opts: any = { replSet: { count: 3 } };
9-
const replSet = new MongoMemoryReplSet(opts);
8+
const replSet = new MongoMemoryReplSet({ replSet: { count: 3 } });
109
await replSet.waitUntilRunning();
1110
expect(replSet.servers.length).toEqual(3);
1211
const uri = await replSet.getUri();
@@ -16,8 +15,7 @@ describe('multi-member replica set', () => {
1615
}, 40000);
1716

1817
it('should be possible to connect replicaset after waitUntilRunning resolveds', async () => {
19-
const opts: any = { replSet: { count: 3 } };
20-
const replSet = new MongoMemoryReplSet(opts);
18+
const replSet = new MongoMemoryReplSet({ replSet: { count: 3 } });
2119
await replSet.waitUntilRunning();
2220
const uri = await replSet.getUri();
2321

0 commit comments

Comments
 (0)