diff options
author | Mikhail Shchatko <mikhail.shchatko@mongodb.com> | 2021-06-18 12:23:46 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-18 15:39:18 +0000 |
commit | 374bb76c029bb56e684bfcdf1e7ffad03bd08b87 (patch) | |
tree | 6a19f781cc73d21e00e3bf46923fd30f17df8c49 | |
parent | 8d2014e097904b60f7df66e9786f01b98876e0a4 (diff) | |
download | mongo-374bb76c029bb56e684bfcdf1e7ffad03bd08b87.tar.gz |
SERVER-57845 Wrap insert into assert.commandWorked in shell_uses_correct_read_concern.js
(cherry picked from commit 90c6c2c99ac81fdb5119e8441b0799b4d4db6632)
-rw-r--r-- | jstests/noPassthrough/shell_uses_correct_read_concern.js | 2 |
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 = () => |