-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Query 2017-09-11
-
0
This test relies on being able to do enough remove operations within 10 seconds. We should make the assertion made more forgiving on slow machines.
function benchrun_sub_remove(use_write_command) { t = db.benchrun_sub; t.drop(); ops = [{ op: "remove", ns: "test.benchrun_sub", query: {x: {"#RAND_INT": [0, 100]}}, writeCmd: use_write_command, }]; for (var i = 0; i < 100; ++i) { t.insert({x: i}); } res = benchRun({parallel: 1, seconds: 10, ops: ops, host: db.getMongo().host}); assert.eq(t.count(), 0); }