summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/ttl_sharded.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/ttl_sharded.js')
-rw-r--r--jstests/noPassthroughWithMongod/ttl_sharded.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/ttl_sharded.js b/jstests/noPassthroughWithMongod/ttl_sharded.js
index 6788dfcdcf9..5c59b1851ad 100644
--- a/jstests/noPassthroughWithMongod/ttl_sharded.js
+++ b/jstests/noPassthroughWithMongod/ttl_sharded.js
@@ -28,7 +28,7 @@ for (var i = 0; i < 24; i++) {
var past = new Date(now - (3600 * 1000 * i));
bulk.insert({_id: i, x: past});
}
-assert.writeOK(bulk.execute());
+assert.commandWorked(bulk.execute());
assert.eq(t.count(), 24, "initial docs not inserted");
// create the TTL index which delete anything older than ~5.5 hours