diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-10-10 16:42:43 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-10 17:58:36 -0400 |
commit | 953df5a1f04dafa56d1c1fb37f66438ba0698d4e (patch) | |
tree | 44132a40a0f145878cc0c47e2e6443952b2df3e2 /jstests/sharding/sharding_balance1.js | |
parent | 9094279371cc1573fed720541555d9ae05a36eb4 (diff) | |
download | mongo-953df5a1f04dafa56d1c1fb37f66438ba0698d4e.tar.gz |
SERVER-31184 Make sharding tests only consider chunks for collections they actually use
Diffstat (limited to 'jstests/sharding/sharding_balance1.js')
-rw-r--r-- | jstests/sharding/sharding_balance1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/sharding_balance1.js b/jstests/sharding/sharding_balance1.js index 22a8aaa6210..4213b47d6d7 100644 --- a/jstests/sharding/sharding_balance1.js +++ b/jstests/sharding/sharding_balance1.js @@ -23,7 +23,7 @@ assert.writeOK(bulk.execute()); assert.commandWorked(s.s0.adminCommand({shardcollection: "test.foo", key: {_id: 1}})); - assert.lt(20, s.config.chunks.count(), "setup2"); + assert.lt(20, s.config.chunks.count({"ns": "test.foo"}), "setup2"); function diff1() { var x = s.chunkCounts("foo"); |