summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-04-15 19:53:07 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-12 11:03:33 +0000
commit79985071e108ee36a3bf4744f7c77a5b2bf3a7b5 (patch)
tree67a6a0e957ec22acaa7e98be79c57c099da9fedb
parent5eec40dc1c024082ef15c5658a7e3f5f8dd0a95f (diff)
downloadmongo-79985071e108ee36a3bf4744f7c77a5b2bf3a7b5.tar.gz
SERVER-51699 index_build_restart_secondary.js should handle exceptions when checking indexes after restarting node
(cherry picked from commit 8cdb1f0b2d980e1c75cd69ea9cfce97480fca396)
-rw-r--r--jstests/noPassthroughWithMongod/indexbg_restart_secondary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js b/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
index 446502905cb..371f1c51d58 100644
--- a/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
+++ b/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
@@ -79,7 +79,7 @@ assert.soon(function() {
}
}, "secondary didn't restart", 30000, 1000);
-assert.soon(function() {
+assert.soonNoExcept(function() {
return 2 == secondDB.getCollection(collectionName).getIndexes().length;
}, "Index build not resumed after restart", 30000, 50);
replTest.stopSet();