summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Evans <jacob.evans@10gen.com>2019-02-15 13:36:59 -0500
committerJacob Evans <jacob.evans@10gen.com>2019-02-15 13:36:59 -0500
commit281c60d09ab041c8db0c7afbc2bbdb771b670264 (patch)
treef474cba5823d0ec750b3cfb199347633412d17a0
parent78126b28f01414f9606da7845baff5f73be4378d (diff)
downloadmongo-281c60d09ab041c8db0c7afbc2bbdb771b670264.tar.gz
SERVER-39472 Account for HMAC key inserts in apply_ops_concurrent_non_atomic.js
-rw-r--r--jstests/replsets/libs/apply_ops_concurrent_non_atomic.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/replsets/libs/apply_ops_concurrent_non_atomic.js b/jstests/replsets/libs/apply_ops_concurrent_non_atomic.js
index 39dcfdf80da..97de2677de5 100644
--- a/jstests/replsets/libs/apply_ops_concurrent_non_atomic.js
+++ b/jstests/replsets/libs/apply_ops_concurrent_non_atomic.js
@@ -193,7 +193,8 @@ var ApplyOpsConcurrentNonAtomicTest = function(options) {
// holding the global lock, the insert opcounter will eventually be incremented to 2.
try {
let insertOpCount = 0;
- const expectedFinalOpCount = 2;
+ // Expecting two HMAC inserts and two applyOps in-progress.
+ const expectedFinalOpCount = 4;
assert.soon(
function() {
const serverStatus = adminDb.serverStatus();
@@ -206,7 +207,7 @@ var ApplyOpsConcurrentNonAtomicTest = function(options) {
'Expected at most ' + expectedFinalOpCount +
' documents inserted with fail point enabled. ' +
'Most recent insert operation count = ' + insertOpCount);
- return insertOpCount === expectedFinalOpCount;
+ return insertOpCount == expectedFinalOpCount;
},
'Insert operation count did not reach ' + expectedFinalOpCount +
' as expected with fail point enabled. Most recent insert operation count = ' +