summaryrefslogtreecommitdiff
path: root/jstests/ssl/libs/ssl_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/ssl/libs/ssl_helpers.js')
-rw-r--r--jstests/ssl/libs/ssl_helpers.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/ssl/libs/ssl_helpers.js b/jstests/ssl/libs/ssl_helpers.js
index c4a0f97968e..faf5b777284 100644
--- a/jstests/ssl/libs/ssl_helpers.js
+++ b/jstests/ssl/libs/ssl_helpers.js
@@ -65,14 +65,13 @@ function mixedShardTest(options1, options2, shouldSucceed) {
r = st.adminCommand({ shardCollection : "test.col" , key : { _id : 1 } });
assert.eq(r, true, "error sharding collection for this configuration");
- // Test mongos talking to shards
+ // Test mongos talking to shards
var bigstr = Array(1024*1024).join("#");
- var bulk = db1.col.initializeUnorderedBulkOp();
for(var i = 0; i < 128; i++){
- bulk.insert({ _id: i, string: bigstr });
+ db1.col.insert({_id:i, string:bigstr});
}
- assert.writeOK(bulk.execute());
+ db1.getLastError();
assert.eq(128, db1.col.count(), "error retrieving documents from cluster");
// Test shards talking to each other