diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/ttl_repl_maintenance.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/ttl_repl_maintenance.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js b/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js index 15e72b66a81..99c8681a144 100644 --- a/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js +++ b/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js @@ -17,7 +17,8 @@ var primeSystemReplset = function() { print("create a TTL collection"); var testDB = conn.getDB("test"); - assert.commandWorked(testDB.foo.ensureIndex({ x: 1 }, { expireAfterSeconds: 2 })); + testDB.foo.ensureIndex({x:1}, {expireAfterSeconds : 2}); + testDB.getLastError(); }; var restartWithConfig = function() { @@ -37,7 +38,8 @@ var restartWithConfig = function() { var restartWithoutConfig = function() { var localDB = conn.getDB("local"); - assert.writeOK(localDB.system.replset.remove({})); + localDB.system.replset.remove({}); + localDB.getLastError(); stopMongod(runner.port(), 15); |