summaryrefslogtreecommitdiff
path: root/jstests/slow1
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-04-25 14:04:36 -0400
committerRandolph Tan <randolph@10gen.com>2014-05-06 16:32:44 -0400
commit87dc3ae516e1d12a632dc604710661e38ed7b3dd (patch)
tree3a483a3d0c38ce00a7f4d7dba0e9cba7f7eba5f3 /jstests/slow1
parent6b945ec15c61f6bd4bfbaf382624d886ec8441d2 (diff)
downloadmongo-87dc3ae516e1d12a632dc604710661e38ed7b3dd.tar.gz
SERVER-13741 Migrate remaining tests to use write commands
Diffstat (limited to 'jstests/slow1')
-rw-r--r--jstests/slow1/sharding_multiple_collections.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/jstests/slow1/sharding_multiple_collections.js b/jstests/slow1/sharding_multiple_collections.js
index 61d9911afca..d817038ecdb 100644
--- a/jstests/slow1/sharding_multiple_collections.js
+++ b/jstests/slow1/sharding_multiple_collections.js
@@ -12,11 +12,14 @@ S = ""
while ( S.length < 500 )
S += "123123312312";
+var bulk = db.foo.initializeUnorderedBulkOp();
+var bulk2 = db.bar.initializeUnorderedBulkOp();
for ( i=0; i<N; i++ ){
- db.foo.insert( { _id : i , s : S } )
- db.bar.insert( { _id : i , s : S , s2 : S } )
- db.getLastError()
+ bulk.insert({ _id: i, s: S });
+ bulk2.insert({ _id: i, s: S, s2: S });
}
+assert.writeOK(bulk.execute());
+assert.writeOK(bulk2.execute());
db.printShardingStatus()