summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2017-08-30 14:20:24 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2017-09-05 15:40:37 -0400
commitb505a70cc41564ef3422fa744a47822c2efe27aa (patch)
tree802a076319e9b913441fed77bfe5c5bea04302e4
parent42bfda31eae322ac190e0c8cd831ca73f6e78f18 (diff)
downloadmongo-b505a70cc41564ef3422fa744a47822c2efe27aa.tar.gz
SERVER-30863 Make benchrun_substitution.js more robust
-rw-r--r--jstests/noPassthroughWithMongod/benchrun_substitution.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthroughWithMongod/benchrun_substitution.js b/jstests/noPassthroughWithMongod/benchrun_substitution.js
index ddcef69d73d..b8562040e11 100644
--- a/jstests/noPassthroughWithMongod/benchrun_substitution.js
+++ b/jstests/noPassthroughWithMongod/benchrun_substitution.js
@@ -40,7 +40,7 @@ function benchrun_sub_update(use_write_command) {
}];
for (var i = 0; i < 100; ++i) {
- t.insert({x: i});
+ assert.writeOK(t.insert({x: i}));
}
res = benchRun({parallel: 1, seconds: 10, ops: ops, host: db.getMongo().host});
@@ -65,12 +65,12 @@ function benchrun_sub_remove(use_write_command) {
}];
for (var i = 0; i < 100; ++i) {
- t.insert({x: i});
+ assert.writeOK(t.insert({x: i}));
}
res = benchRun({parallel: 1, seconds: 10, ops: ops, host: db.getMongo().host});
- assert.eq(t.count(), 0);
+ assert.lt(t.count(), 100);
}
benchrun_sub_insert(true);