summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js
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/noPassthroughWithMongod/sharding_migrate_large_docs.js
parent6b945ec15c61f6bd4bfbaf382624d886ec8441d2 (diff)
downloadmongo-87dc3ae516e1d12a632dc604710661e38ed7b3dd.tar.gz
SERVER-13741 Migrate remaining tests to use write commands
Diffstat (limited to 'jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js')
-rw-r--r--jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js b/jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js
index 6b2e7faa56b..8132e33c5d0 100644
--- a/jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js
+++ b/jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js
@@ -40,15 +40,14 @@ coll.insert({ _id : -2, d : data15PlusMB });
coll.insert({ _id : -1, d : data15PlusMB });
// Docs of assorted sizes
-coll.insert({ _id : 0, d : "x" });
-coll.insert({ _id : 1, d : data15PlusMB });
-coll.insert({ _id : 2, d : "x" });
-coll.insert({ _id : 3, d : data15MB });
-coll.insert({ _id : 4, d : "x" });
-coll.insert({ _id : 5, d : data1MB });
-coll.insert({ _id : 6, d : "x" });
-
-assert.eq( null, coll.getDB().getLastError() );
+assert.writeOK(coll.insert({ _id : 0, d : "x" }));
+assert.writeOK(coll.insert({ _id : 1, d : data15PlusMB }));
+assert.writeOK(coll.insert({ _id : 2, d : "x" }));
+assert.writeOK(coll.insert({ _id : 3, d : data15MB }));
+assert.writeOK(coll.insert({ _id : 4, d : "x" }));
+assert.writeOK(coll.insert({ _id : 5, d : data1MB }));
+assert.writeOK(coll.insert({ _id : 6, d : "x" }));
+
assert.eq( 9, coll.find().itcount() );
jsTest.log( "Starting migration..." );