diff options
author | Matthew Russotto <matthew.russotto@mongodb.com> | 2021-06-03 14:44:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-10 17:46:40 +0000 |
commit | 310e98b5b85642d542a0218679cc12e8a8df9e1e (patch) | |
tree | dfd0e4c20f7e07c4ee29539f4de5431e45407610 /jstests | |
parent | 2b86fc3175604f8e56b61480a2eb7ad719534521 (diff) | |
download | mongo-310e98b5b85642d542a0218679cc12e8a8df9e1e.tar.gz |
SERVER-57387 create_view_does_not_take_database_X.js should check its insert
(cherry picked from commit b3f458f1e3bb917a6c30e8d5986eb854ab62d265)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthrough/create_view_does_not_take_database_X.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/create_view_does_not_take_database_X.js b/jstests/noPassthrough/create_view_does_not_take_database_X.js index 4503ecf2992..c586b4d4922 100644 --- a/jstests/noPassthrough/create_view_does_not_take_database_X.js +++ b/jstests/noPassthrough/create_view_does_not_take_database_X.js @@ -28,7 +28,7 @@ const sessionDb = session.getDatabase("test"); session.startTransaction(); // This holds a database IX lock and a collection IX lock on "a". -sessionDb.a.insert({y: 1}); +assert.commandWorked(sessionDb.a.insert({y: 1})); // This only requires database IX lock. assert.commandWorked(db.createView("view", "a", [])); |