diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-08-30 14:20:24 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-09-05 15:40:37 -0400 |
commit | b505a70cc41564ef3422fa744a47822c2efe27aa (patch) | |
tree | 802a076319e9b913441fed77bfe5c5bea04302e4 | |
parent | 42bfda31eae322ac190e0c8cd831ca73f6e78f18 (diff) | |
download | mongo-b505a70cc41564ef3422fa744a47822c2efe27aa.tar.gz |
SERVER-30863 Make benchrun_substitution.js more robust
-rw-r--r-- | jstests/noPassthroughWithMongod/benchrun_substitution.js | 6 |
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); |