summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard2.js
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-12-22 17:31:43 +0000
committerevergreen <evergreen@mongodb.com>2019-12-22 17:31:43 +0000
commitd6cc8fa5d0319c470e12887836498d3f2f288c29 (patch)
tree614f67e4d6cab284363c109a8923b264fb809a5a /jstests/sharding/shard2.js
parent230c60a4f74e09bd5b5dd55112e4ae37be4e94f3 (diff)
downloadmongo-d6cc8fa5d0319c470e12887836498d3f2f288c29.tar.gz
SERVER-44855 Remove unused code from removeShard and ShardingTest
Diffstat (limited to 'jstests/sharding/shard2.js')
-rw-r--r--jstests/sharding/shard2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/shard2.js b/jstests/sharding/shard2.js
index 2bcb9f99843..79b473de29d 100644
--- a/jstests/sharding/shard2.js
+++ b/jstests/sharding/shard2.js
@@ -206,17 +206,17 @@ assert.eq(1, res.nModified, res.toString());
// ---- move all to the secondary
-assert.eq(2, s.onNumShards("foo"), "on 2 shards");
+assert.eq(2, s.onNumShards("test", "foo"), "on 2 shards");
secondary.foo.insert({num: -3});
assert.commandWorked(s.s0.adminCommand(
{movechunk: "test.foo", find: {num: -2}, to: secondary.getMongo().name, _waitForDelete: true}));
-assert.eq(1, s.onNumShards("foo"), "on 1 shards");
+assert.eq(1, s.onNumShards("test", "foo"), "on 1 shards");
assert.commandWorked(s.s0.adminCommand(
{movechunk: "test.foo", find: {num: -2}, to: primary.getMongo().name, _waitForDelete: true}));
-assert.eq(2, s.onNumShards("foo"), "on 2 shards again");
+assert.eq(2, s.onNumShards("test", "foo"), "on 2 shards again");
assert.eq(3, s.config.chunks.count({"ns": "test.foo"}), "only 3 chunks");
print("YO : " + tojson(db.runCommand("serverStatus")));