summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorMikhail Shchatko <mikhail.shchatko@mongodb.com>2021-06-18 12:23:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-18 15:10:29 +0000
commit90c6c2c99ac81fdb5119e8441b0799b4d4db6632 (patch)
tree3e18ae78b772eb8d8f354f40c22811d7e6cf2073 /jstests/noPassthrough
parentff6b2f2877a0721cd631acaa2057e491ebd8c846 (diff)
downloadmongo-90c6c2c99ac81fdb5119e8441b0799b4d4db6632.tar.gz
SERVER-57845 Wrap insert into assert.commandWorked in shell_uses_correct_read_concern.js
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/shell_uses_correct_read_concern.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/shell_uses_correct_read_concern.js b/jstests/noPassthrough/shell_uses_correct_read_concern.js
index 4ecc4b6e5be..f3005c0f346 100644
--- a/jstests/noPassthrough/shell_uses_correct_read_concern.js
+++ b/jstests/noPassthrough/shell_uses_correct_read_concern.js
@@ -16,7 +16,7 @@ const testDoc = {
"test": "doc",
"_id": 0
};
-coll.insertOne(testDoc);
+assert.commandWorked(coll.insertOne(testDoc));
rst.awaitReplication();
const getMajorityRCCount = () =>