diff options
| author | Judah Schvimer <judah@mongodb.com> | 2017-01-24 16:30:49 -0500 |
|---|---|---|
| committer | Judah Schvimer <judah@mongodb.com> | 2017-02-03 11:50:05 -0500 |
| commit | ed7972c9102096011ea69392519b40251bf4f5c1 (patch) | |
| tree | 83397186866092516e034f4cdb4c5ed2f7c47b82 /jstests/noPassthroughWithMongod | |
| parent | 2af670fe0da2a38252b99eb30eab6cd4ffddf1cf (diff) | |
| download | mongo-ed7972c9102096011ea69392519b40251bf4f5c1.tar.gz | |
SERVER-27794 add write concern to indexbg_drop.js bulk insert
(cherry picked from commit 90131c25887d2cd4b4151cf9bc610188b4964cfa)
Diffstat (limited to 'jstests/noPassthroughWithMongod')
| -rw-r--r-- | jstests/noPassthroughWithMongod/indexbg_drop.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/indexbg_drop.js b/jstests/noPassthroughWithMongod/indexbg_drop.js index 4ef39eef70b..1f4e1c1be64 100644 --- a/jstests/noPassthroughWithMongod/indexbg_drop.js +++ b/jstests/noPassthroughWithMongod/indexbg_drop.js @@ -49,7 +49,7 @@ var bulk = masterDB.getCollection(collection).initializeUnorderedBulkOp(); for (i = 0; i < size; ++i) { bulk.insert({i: Random.rand()}); } -assert.writeOK(bulk.execute()); +assert.writeOK(bulk.execute({w: 2, wtimeout: replTest.kDefaultTimeoutMS})); jsTest.log("Starting background indexing for test of: " + tojson(dc)); // Add another index to be sure the drop command works. |
