Skip to content

Commit f484c13

Browse files
committed
test: await while all SECONDARIES will be ready
1 parent 1b88c1c commit f484c13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ describe('multi-member replica set', () => {
2626
useUnifiedTopology: true,
2727
});
2828

29+
// await while all SECONDARIES will be ready
30+
await new Promise((resolve) => setTimeout(resolve, 2000));
31+
2932
const db = await conn.db(await replSet.getDbName());
3033
const admin = db.admin();
3134
const status = await admin.replSetGetStatus();

0 commit comments

Comments
 (0)