Skip to content

Commit

Permalink
test: await while all SECONDARIES will be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Oct 22, 2019
1 parent 1b88c1c commit f484c13
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ describe('multi-member replica set', () => {
useUnifiedTopology: true,
});

// await while all SECONDARIES will be ready
await new Promise((resolve) => setTimeout(resolve, 2000));

const db = await conn.db(await replSet.getDbName());
const admin = db.admin();
const status = await admin.replSetGetStatus();
Expand Down

0 comments on commit f484c13

Please sign in to comment.