diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-02-19 19:52:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-19 22:12:57 +0000 |
commit | 0a3dc2dbe61349734ca98c5caf19fd8d28fd02eb (patch) | |
tree | b6f3879de6166a161f6bb15c93878a0598cb617d /jstests | |
parent | 3b8e5da26577a8a943ed7ccb9727b11ee4807f91 (diff) | |
download | mongo-0a3dc2dbe61349734ca98c5caf19fd8d28fd02eb.tar.gz |
SERVER-54120 Fix when configuring the log failpoint
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthrough/awaitable_hello.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/noPassthrough/awaitable_hello.js b/jstests/noPassthrough/awaitable_hello.js index b65b7d63476..bf3eb3dd379 100644 --- a/jstests/noPassthrough/awaitable_hello.js +++ b/jstests/noPassthrough/awaitable_hello.js @@ -67,12 +67,14 @@ function runTest(db, cmd, logFailpoint) { // Use a skip of 1, since the parallel shell runs hello when it starts. const helloFailpoint = configureFailPoint(db, "waitInHello", {}, {skip: 1}); + const logFailPoint = configureFailPoint(db, logFailpoint); const awaitHello = startParallelShell(funWithArgs(runHelloCommand, cmd, topologyVersionField), db.getMongo().port); helloFailpoint.wait(); sleep(1000); // Make the command hang for a second in the parallel shell. helloFailpoint.off(); - const logFailPoint = configureFailPoint(db, logFailpoint); + + // Wait for the parallel shell to finish. awaitHello(); // Wait for the command to be logged. |