diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-10-20 15:01:53 -0400 |
---|---|---|
committer | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-10-20 21:47:10 -0400 |
commit | 367d31e1da549c460ae710a8cc280f4c235ab24f (patch) | |
tree | e5bab44a1e565e9d349d4da72182d9883c71eebc /jstests/noPassthrough/read_concern_helper.js | |
parent | 3944af0d50504ff254330aaeb15eae955ffdb91b (diff) | |
download | mongo-367d31e1da549c460ae710a8cc280f4c235ab24f.tar.gz |
SERVER-31350: Make enableMajorityReadConcern a noop
Diffstat (limited to 'jstests/noPassthrough/read_concern_helper.js')
-rw-r--r-- | jstests/noPassthrough/read_concern_helper.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/jstests/noPassthrough/read_concern_helper.js b/jstests/noPassthrough/read_concern_helper.js index dfc4909d6f6..2f9e2c4807b 100644 --- a/jstests/noPassthrough/read_concern_helper.js +++ b/jstests/noPassthrough/read_concern_helper.js @@ -1,6 +1,4 @@ -// This tests readConcern handling for the find/findOne shell helpers It runs find commands that -// should fail without --enableMajorityReadConcern enabled and then reruns the find commands with -// that option enabled. +// This tests readConcern handling for the find/findOne shell helpers. (function() { "use strict"; var testServer = MongoRunner.runMongod(); @@ -11,28 +9,6 @@ } var coll = testServer.getDB("test").readMajority; - assert.writeOK(coll.insert({_id: "foo"})); - assert.throws(function() { - coll.find({_id: "foo"}).readConcern("majority").itcount(); - }); - assert.throws(function() { - coll.findOne({_id: "foo"}, {}, {}, "majority"); - }); - assert.throws(function() { - coll.count({_id: "foo"}, {readConcern: "majority"}); - }); - assert.throws(function() { - coll.find({_id: "foo"}).readConcern("majority").count(); - }); - - MongoRunner.stopMongod(testServer); - testServer = MongoRunner.runMongod({ - restart: true, - port: testServer.port, - enableMajorityReadConcern: "", - }); - coll = testServer.getDB("test").readMajority; - assert.doesNotThrow(function() { coll.find({_id: "foo"}).readConcern("majority").itcount(); }); |