diff options
Diffstat (limited to 'jstests/noPassthrough/indexbg_killop_secondary.js')
-rw-r--r-- | jstests/noPassthrough/indexbg_killop_secondary.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_secondary.js b/jstests/noPassthrough/indexbg_killop_secondary.js index 261d65788de..f83077de565 100644 --- a/jstests/noPassthrough/indexbg_killop_secondary.js +++ b/jstests/noPassthrough/indexbg_killop_secondary.js @@ -26,7 +26,7 @@ const primary = rst.getPrimary(); const testDB = primary.getDB('test'); const coll = testDB.getCollection('test'); -assert.writeOK(coll.insert({a: 1})); +assert.commandWorked(coll.insert({a: 1})); const secondary = rst.getSecondary(); IndexBuildTest.pauseIndexBuilds(secondary); |