summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-01-24 16:30:49 -0500
committerJudah Schvimer <judah@mongodb.com>2017-02-03 11:50:05 -0500
commited7972c9102096011ea69392519b40251bf4f5c1 (patch)
tree83397186866092516e034f4cdb4c5ed2f7c47b82 /jstests/noPassthroughWithMongod
parent2af670fe0da2a38252b99eb30eab6cd4ffddf1cf (diff)
downloadmongo-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.js2
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.