diff options
Diffstat (limited to 'jstests/noPassthrough/recovery_wt_cache_full.js')
-rw-r--r-- | jstests/noPassthrough/recovery_wt_cache_full.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/recovery_wt_cache_full.js b/jstests/noPassthrough/recovery_wt_cache_full.js index 7d7dc171296..72e36a13eb1 100644 --- a/jstests/noPassthrough/recovery_wt_cache_full.js +++ b/jstests/noPassthrough/recovery_wt_cache_full.js @@ -41,7 +41,7 @@ const numDocs = 2; const minDocSizeMB = 10; for (let i = 0; i < numDocs; ++i) { - assert.writeOK( + assert.commandWorked( coll.save({_id: i, i: 0, x: 'x'.repeat(minDocSizeMB * 1024 * 1024)}, {writeConcern: {w: nodes.length, wtimeout: ReplSetTest.kDefaultTimeoutMS}})); } @@ -64,7 +64,7 @@ jsTestLog('Writing ' + numUpdates + ' updates to ' + numDocs + ' documents on secondary after disabling snapshots.'); for (let i = 0; i < numDocs; ++i) { for (let j = 0; j < numUpdates; ++j) { - assert.writeOK(coll.update({_id: i}, {$inc: {i: 1}})); + assert.commandWorked(coll.update({_id: i}, {$inc: {i: 1}})); } } |