Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
-
Fully Compatible
-
Query 2017-09-11
-
0
Description
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.
56
|
function benchrun_sub_remove(use_write_command) { |
57
|
t = db.benchrun_sub;
|
58
|
t.drop();
|
59
|
|
60
|
ops = [{
|
61
|
op: "remove", |
62
|
ns: "test.benchrun_sub", |
63
|
query: {x: {"#RAND_INT": [0, 100]}}, |
64
|
writeCmd: use_write_command,
|
65
|
}];
|
66
|
|
67
|
for (var i = 0; i < 100; ++i) { |
68
|
t.insert({x: i});
|
69
|
}
|
70
|
|
71
|
res = benchRun({parallel: 1, seconds: 10, ops: ops, host: db.getMongo().host});
|
72
|
|
73
|
assert.eq(t.count(), 0);
|
74
|
}
|