diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-12-22 17:31:43 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-22 17:31:43 +0000 |
commit | d6cc8fa5d0319c470e12887836498d3f2f288c29 (patch) | |
tree | 614f67e4d6cab284363c109a8923b264fb809a5a /jstests/sharding/shard2.js | |
parent | 230c60a4f74e09bd5b5dd55112e4ae37be4e94f3 (diff) | |
download | mongo-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.js | 6 |
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"))); |