From 79985071e108ee36a3bf4744f7c77a5b2bf3a7b5 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Thu, 15 Apr 2021 19:53:07 -0400 Subject: SERVER-51699 index_build_restart_secondary.js should handle exceptions when checking indexes after restarting node (cherry picked from commit 8cdb1f0b2d980e1c75cd69ea9cfce97480fca396) --- jstests/noPassthroughWithMongod/indexbg_restart_secondary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.1