summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-06-05 17:27:20 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-05 18:01:25 -0400
commitf30bd81cdcdabe19e45ed4c45d43a87160bdc58f (patch)
tree921c316a57dbb3ba7afa335e474ad203ba34687c
parent7791d76b7466201a2e0c56ddadc9402d9be82c09 (diff)
downloadmongo-f30bd81cdcdabe19e45ed4c45d43a87160bdc58f.tar.gz
SERVER-14995 Fix race condition in jstests/noPassthrough/update_yield1.js.
-rw-r--r--jstests/noPassthrough/update_yield1.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/noPassthrough/update_yield1.js b/jstests/noPassthrough/update_yield1.js
index 04c60e602ce..3fe64a8505e 100644
--- a/jstests/noPassthrough/update_yield1.js
+++ b/jstests/noPassthrough/update_yield1.js
@@ -59,8 +59,9 @@ while ( ( (new Date()).getTime() - start ) < ( time * 2 ) ){
if ( num++ == 0 ){
var x = db.currentOp();
- // one operation for the update, another for currentOp itself
- assert.eq( 2 , x.inprog.length , "nothing in prog" );
+ // one operation for the update, another for currentOp itself. There may be other internal
+ // operations running.
+ assert.gte( 2 , x.inprog.length , "nothing in prog" );
}
assert.gt( time / 3 , me );