diff options
| author | Benety Goh <benety@mongodb.com> | 2016-07-13 06:24:16 -0400 |
|---|---|---|
| committer | Benety Goh <benety@mongodb.com> | 2016-07-13 11:24:06 -0400 |
| commit | ff285b342fd98416a458a070f05e62c274028c89 (patch) | |
| tree | ada05efc6bb297ce3daffa9ee33aa46f8e629fe2 /jstests/noPassthroughWithMongod | |
| parent | 799100121f8848a9f8a4705665a744d5b50f4a8b (diff) | |
| download | mongo-ff285b342fd98416a458a070f05e62c274028c89.tar.gz | |
SERVER-25035 fixed incorrect write concern in tests
Diffstat (limited to 'jstests/noPassthroughWithMongod')
3 files changed, 5 insertions, 5 deletions
diff --git a/jstests/noPassthroughWithMongod/bench_test_crud_commands.js b/jstests/noPassthroughWithMongod/bench_test_crud_commands.js index 7bbafa4e931..2866c1b2cc3 100644 --- a/jstests/noPassthroughWithMongod/bench_test_crud_commands.js +++ b/jstests/noPassthroughWithMongod/bench_test_crud_commands.js @@ -80,9 +80,9 @@ testInsert([bigDoc], writeCmd, {}); testInsert(docs, writeCmd, {}); - testInsert(docs, writeCmd, {"writeConcern": {"w": "majority"}}); - testInsert(docs, writeCmd, {"writeConcern": {"w": 1, "j": false}}); - testInsert(docs, writeCmd, {"writeConcern": {"j": true}}); + testInsert(docs, writeCmd, {"w": "majority"}); + testInsert(docs, writeCmd, {"w": 1, "j": false}); + testInsert(docs, writeCmd, {"j": true}); } testWriteConcern(false); diff --git a/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js b/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js index aff2287c48d..55c13f3e44e 100644 --- a/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js +++ b/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js @@ -42,7 +42,7 @@ for (var i = 0; i < size; ++i) { bulk.insert({i: i}); } - assert.writeOK(bulk.execute({writeConcern: {j: true}})); + assert.writeOK(bulk.execute({j: true})); assert.eq(size, coll.count(), 'unexpected number of documents after bulk insert.'); // Make sure the documents make it to the secondary. diff --git a/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js b/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js index 1420683374b..bfeb44dcfeb 100644 --- a/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js +++ b/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js @@ -40,7 +40,7 @@ for (var i = 0; i < size; ++i) { bulk.insert({i: i}); } - assert.writeOK(bulk.execute({writeConcern: {j: true}})); + assert.writeOK(bulk.execute({j: true})); assert.eq(size, masterColl.count(), 'unexpected number of documents after bulk insert.'); // Make sure the documents get replicated to the secondary. |
