summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/txn_override_causal_consistency.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/txn_override_causal_consistency.js')
-rw-r--r--jstests/noPassthrough/txn_override_causal_consistency.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/txn_override_causal_consistency.js b/jstests/noPassthrough/txn_override_causal_consistency.js
index ac7c9758c96..ef5605a1b2d 100644
--- a/jstests/noPassthrough/txn_override_causal_consistency.js
+++ b/jstests/noPassthrough/txn_override_causal_consistency.js
@@ -102,7 +102,7 @@ function inspectFirstCommandForAfterClusterTime(conn, cmdName, isCausal, expectR
function testInsert(conn, isCausal, expectRetry) {
inspectFirstCommandForAfterClusterTime(conn, "insert", isCausal, expectRetry, (coll) => {
- assert.writeOK(coll.insert({x: 1}));
+ assert.commandWorked(coll.insert({x: 1}));
});
}