diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2019-02-15 13:30:10 -0500 |
---|---|---|
committer | Jacob Evans <jacob.evans@10gen.com> | 2019-02-15 13:30:10 -0500 |
commit | 14c4dae63d7191814da2f1e7bdc165e37474d04e (patch) | |
tree | e71d9e72714f4cc76c9549f6ed9a8108c733fbb9 /jstests | |
parent | 9fef93aed46338be9bcf6f4803906c36bc48b2ce (diff) | |
download | mongo-14c4dae63d7191814da2f1e7bdc165e37474d04e.tar.gz |
SERVER-39472 Account for HMAC key inserts in apply_ops_concurrent_non_atomic.js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/libs/apply_ops_concurrent_non_atomic.js | 5 |
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 = ' + |