summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/indexbg_killop_primary_after_init.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/indexbg_killop_primary_after_init.js')
-rw-r--r--jstests/noPassthrough/indexbg_killop_primary_after_init.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_primary_after_init.js b/jstests/noPassthrough/indexbg_killop_primary_after_init.js
index 9b43b6dee32..a785db3ffeb 100644
--- a/jstests/noPassthrough/indexbg_killop_primary_after_init.js
+++ b/jstests/noPassthrough/indexbg_killop_primary_after_init.js
@@ -88,7 +88,8 @@ if (IndexBuildTest.supportsTwoPhaseIndexBuild(primary)) {
assert.eq(0, ops.length, 'incorrect number of commitIndexBuild oplog entries: ' + tojson(ops));
// Index build should be removed from the config.system.indexBuilds collection.
- assert(primary.getCollection('config.system.indexBuilds').findOne({_id: indexBuildUUID}));
+ assert.isnull(
+ primary.getCollection('config.system.indexBuilds').findOne({_id: indexBuildUUID}));
} else {
// The noop oplog entry is the only evidence of the failed single phase index build.
let ops = rst.dumpOplog(