diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-06-05 17:27:20 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-06-05 18:01:25 -0400 |
commit | f30bd81cdcdabe19e45ed4c45d43a87160bdc58f (patch) | |
tree | 921c316a57dbb3ba7afa335e474ad203ba34687c | |
parent | 7791d76b7466201a2e0c56ddadc9402d9be82c09 (diff) | |
download | mongo-f30bd81cdcdabe19e45ed4c45d43a87160bdc58f.tar.gz |
SERVER-14995 Fix race condition in jstests/noPassthrough/update_yield1.js.
-rw-r--r-- | jstests/noPassthrough/update_yield1.js | 5 |
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 ); |