diff options
Diffstat (limited to 'jstests/noPassthrough/sync_write.js')
-rw-r--r-- | jstests/noPassthrough/sync_write.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/sync_write.js b/jstests/noPassthrough/sync_write.js index a4c0d1ebe38..a76d86ec7f0 100644 --- a/jstests/noPassthrough/sync_write.js +++ b/jstests/noPassthrough/sync_write.js @@ -19,7 +19,7 @@ assert.neq(null, conn, 'mongod was unable to start up'); // Now connect to the mongod, do a journaled write and abruptly stop the server. var testDB = conn.getDB('test'); -assert.writeOK(testDB.synced.insert({synced: true}, {writeConcern: {j: true}})); +assert.commandWorked(testDB.synced.insert({synced: true}, {writeConcern: {j: true}})); MongoRunner.stopMongod(conn, 9, {allowedExitCode: MongoRunner.EXIT_SIGKILL}); // Restart the mongod. |