summaryrefslogtreecommitdiff
path: root/jstests/slow1
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2014-05-06 19:00:56 -0400
committerDavid Storch <david.storch@10gen.com>2014-05-06 19:00:56 -0400
commit72380726608df663a85bee24d69a20ed2ca8287d (patch)
tree735b7724ddc814fdf385d754bd7921975b5de491 /jstests/slow1
parent3061ab54eb2cc642a279becfca0b93f5e17db117 (diff)
downloadmongo-72380726608df663a85bee24d69a20ed2ca8287d.tar.gz
Revert "SERVER-13741 Migrate remaining tests to use write commands"
This reverts commit 87dc3ae516e1d12a632dc604710661e38ed7b3dd.
Diffstat (limited to 'jstests/slow1')
-rw-r--r--jstests/slow1/sharding_multiple_collections.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/slow1/sharding_multiple_collections.js b/jstests/slow1/sharding_multiple_collections.js
index d817038ecdb..61d9911afca 100644
--- a/jstests/slow1/sharding_multiple_collections.js
+++ b/jstests/slow1/sharding_multiple_collections.js
@@ -12,14 +12,11 @@ S = ""
while ( S.length < 500 )
S += "123123312312";
-var bulk = db.foo.initializeUnorderedBulkOp();
-var bulk2 = db.bar.initializeUnorderedBulkOp();
for ( i=0; i<N; i++ ){
- bulk.insert({ _id: i, s: S });
- bulk2.insert({ _id: i, s: S, s2: S });
+ db.foo.insert( { _id : i , s : S } )
+ db.bar.insert( { _id : i , s : S , s2 : S } )
+ db.getLastError()
}
-assert.writeOK(bulk.execute());
-assert.writeOK(bulk2.execute());
db.printShardingStatus()