summaryrefslogtreecommitdiff
path: root/jstests/replsets/prepare_conflict_read_concern_behavior.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/prepare_conflict_read_concern_behavior.js')
-rw-r--r--jstests/replsets/prepare_conflict_read_concern_behavior.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/jstests/replsets/prepare_conflict_read_concern_behavior.js b/jstests/replsets/prepare_conflict_read_concern_behavior.js
index 4ad65f75506..7b092198dc0 100644
--- a/jstests/replsets/prepare_conflict_read_concern_behavior.js
+++ b/jstests/replsets/prepare_conflict_read_concern_behavior.js
@@ -26,7 +26,19 @@
"use strict";
load("jstests/core/txns/libs/prepare_helpers.js");
-const replTest = new ReplSetTest({nodes: 2});
+// Snapshot read concern for the dbHash command is only available when enableTestCommands=true.
+// To test correctly client behavior with dbHash, we set enableTestCommands=false. We modify the
+// values of roleGraphInvalidationIsFatal and authenticationDatabase in order for this test to work
+// on inMemory build variants.
+TestData.enableTestCommands = false;
+TestData.roleGraphInvalidationIsFatal = false;
+TestData.authenticationDatabase = "local";
+const replTest = new ReplSetTest({
+ nodes: {
+ node0: {setParameter: "enableTestCommands=1"},
+ node1: {setParameter: "enableTestCommands=0"}
+ }
+});
replTest.startSet();
replTest.initiate();