diff options
Diffstat (limited to 'jstests/replsets/startup_recovery_reconstructs_txn_prepared_before_stable_ts.js')
-rw-r--r-- | jstests/replsets/startup_recovery_reconstructs_txn_prepared_before_stable_ts.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/replsets/startup_recovery_reconstructs_txn_prepared_before_stable_ts.js b/jstests/replsets/startup_recovery_reconstructs_txn_prepared_before_stable_ts.js index 27237cbe18f..79b7f930255 100644 --- a/jstests/replsets/startup_recovery_reconstructs_txn_prepared_before_stable_ts.js +++ b/jstests/replsets/startup_recovery_reconstructs_txn_prepared_before_stable_ts.js @@ -8,7 +8,6 @@ (function() { "use strict"; load("jstests/core/txns/libs/prepare_helpers.js"); -load("jstests/aggregation/extras/utils.js"); const replTest = new ReplSetTest({nodes: 1}); replTest.startSet(); @@ -68,7 +67,7 @@ primary = replTest.getPrimary(); testColl = primary.getDB(dbName)[collName]; // Make sure we cannot see the writes from the prepared transaction yet. -arrayEq(testColl.find().toArray(), [{_id: 0}, {_id: 2}]); +assert.sameMembers(testColl.find().toArray(), [{_id: 0}, {_id: 2}]); assert.eq(testColl.count(), 3); // Make sure there is still one transaction in the transactions table. This is because the @@ -108,7 +107,7 @@ assert.commandWorked(sessionDB.adminCommand({ })); // Make sure we can see the effects of the prepared transaction. -arrayEq(testColl.find().toArray(), [{_id: 0, a: largeArray}, {_id: 1}, {_id: 2}]); +assert.sameMembers(testColl.find().toArray(), [{_id: 0, a: largeArray}, {_id: 1}, {_id: 2}]); assert.eq(testColl.count(), 3); replTest.stopSet(); |