summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2019-01-04 17:05:50 -0500
committerJack Mulrow <jack.mulrow@mongodb.com>2019-01-07 16:56:41 -0500
commited99636536282ec08b23d9d7a7d3861228200be4 (patch)
tree5ceb1b37f229687d3d968c5444a12797547f6a66
parent58454a7a2f5731b6810811d19816581b9e30b4ea (diff)
downloadmongo-ed99636536282ec08b23d9d7a7d3861228200be4.tar.gz
SERVER-38590 Fix txn_override_causal_consistency.js testCommit()
-rw-r--r--jstests/noPassthrough/txn_override_causal_consistency.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/txn_override_causal_consistency.js b/jstests/noPassthrough/txn_override_causal_consistency.js
index 78d3f6feed1..4d7af427fb2 100644
--- a/jstests/noPassthrough/txn_override_causal_consistency.js
+++ b/jstests/noPassthrough/txn_override_causal_consistency.js
@@ -117,8 +117,8 @@
}
function testCommit(conn, isCausal, expectRetry) {
- inspectFirstCommandForAfterClusterTime(conn, "count", isCausal, expectRetry, (coll) => {
- assert.eq(0, coll.count({y: 1}));
+ inspectFirstCommandForAfterClusterTime(conn, "find", isCausal, expectRetry, (coll) => {
+ assert.eq(0, coll.find({y: 1}).itcount());
assert.commandWorked(coll.getDB().runCommand({ping: 1})); // commits the transaction.
});
}