summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2014-04-09 18:31:55 -0400
committerDan Pasette <dan@mongodb.com>2014-04-16 10:57:43 -0400
commitc18511e8eccb8940f3fbdb4ffede54c8ba8f955e (patch)
tree719bff1b486c7584dc55d23447975020ca1209d4 /jstests
parentadbc29e06ebf142a3c14091db20b5e8a23bb8980 (diff)
downloadmongo-c18511e8eccb8940f3fbdb4ffede54c8ba8f955e.tar.gz
SERVER-13534 Remove data in test array_shard_key.js
(cherry picked from commit 122aaea7105a99a343c4e2b2934bb1cb731047b2)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/array_shard_key.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/array_shard_key.js b/jstests/sharding/array_shard_key.js
index 09b9ca41a46..309f6191414 100644
--- a/jstests/sharding/array_shard_key.js
+++ b/jstests/sharding/array_shard_key.js
@@ -87,14 +87,14 @@ assert.eq( coll.find().itcount(), 0 )
coll.ensureIndex({ _id : 1, i : 1, j: 1 });
// Can insert document that will make index into a multi-key as long as it's not part of shard key.
-coll.drop();
+coll.remove({});
coll.insert({ i: 1, j: [1, 2] });
error = coll.getDB().getLastError();
assert.eq( error, null );
assert.eq( coll.find().itcount(), 1 );
// Same is true for updates.
-coll.drop();
+coll.remove({});
coll.insert({ _id: 1, i: 1 });
coll.update({ _id: 1, i: 1 }, { _id: 1, i:1, j: [1, 2] });
error = coll.getDB().getLastError();
@@ -102,7 +102,7 @@ assert.eq( error, null );
assert.eq( coll.find().itcount(), 1 );
// Same for upserts.
-coll.drop();
+coll.remove({});
coll.update({ _id: 1, i: 1 }, { _id: 1, i:1, j: [1, 2] }, true);
error = coll.getDB().getLastError();
assert.eq( error, null );