summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-05-14 14:11:11 -0400
committerRandolph Tan <randolph@10gen.com>2014-05-15 14:04:11 -0400
commit0dabee8227d445a18fa5e8e49b2be60ba2a0beef (patch)
tree5cd9058a4483202c2f7e2ab6f5c44079a74ac157 /jstests/noPassthroughWithMongod/ttl_repl_maintenance.js
parent4de88387eec6c0bb08b10d0ba1574a656f56232d (diff)
downloadmongo-0dabee8227d445a18fa5e8e49b2be60ba2a0beef.tar.gz
SERVER-13741 Migrate remaining tests to use write commands
Diffstat (limited to 'jstests/noPassthroughWithMongod/ttl_repl_maintenance.js')
-rw-r--r--jstests/noPassthroughWithMongod/ttl_repl_maintenance.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js b/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js
index 99c8681a144..15e72b66a81 100644
--- a/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js
+++ b/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js
@@ -17,8 +17,7 @@ var primeSystemReplset = function() {
print("create a TTL collection");
var testDB = conn.getDB("test");
- testDB.foo.ensureIndex({x:1}, {expireAfterSeconds : 2});
- testDB.getLastError();
+ assert.commandWorked(testDB.foo.ensureIndex({ x: 1 }, { expireAfterSeconds: 2 }));
};
var restartWithConfig = function() {
@@ -38,8 +37,7 @@ var restartWithConfig = function() {
var restartWithoutConfig = function() {
var localDB = conn.getDB("local");
- localDB.system.replset.remove({});
- localDB.getLastError();
+ assert.writeOK(localDB.system.replset.remove({}));
stopMongod(runner.port(), 15);