diff options
Diffstat (limited to 'jstests/core/txns/abort_expired_transaction.js')
| -rw-r--r-- | jstests/core/txns/abort_expired_transaction.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/jstests/core/txns/abort_expired_transaction.js b/jstests/core/txns/abort_expired_transaction.js index 54418596967..b211ef7b132 100644 --- a/jstests/core/txns/abort_expired_transaction.js +++ b/jstests/core/txns/abort_expired_transaction.js @@ -33,11 +33,6 @@ try { const session = db.getMongo().startSession(sessionOptions); const sessionDb = session.getDatabase(testDBName); - // Number of passes made by the "abortExpiredTransactions" thread before the transaction - // expires. - const abortExpiredTransactionsPassesPreAbort = - db.serverStatus().metrics.abortExpiredTransactions.passes; - let txnNumber = 0; jsTest.log("Insert a document starting a transaction."); @@ -69,14 +64,6 @@ try { "currentOp reports that the idle transaction still exists, it has not been " + "aborted as expected."); - assert.soon(() => { - // For this expired transaction to abort, the "abortExpiredTransactions" thread has to - // perform at least one pass. - const serverStatus = db.serverStatus(); - return abortExpiredTransactionsPassesPreAbort < - serverStatus.metrics.abortExpiredTransactions.passes; - }); - jsTest.log( "Attempt to do a write in the transaction, which should fail because the transaction " + "was aborted"); |
