summaryrefslogtreecommitdiff
path: root/jstests/sharding/count1.js
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-10-10 16:42:43 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-10-10 17:58:36 -0400
commit953df5a1f04dafa56d1c1fb37f66438ba0698d4e (patch)
tree44132a40a0f145878cc0c47e2e6443952b2df3e2 /jstests/sharding/count1.js
parent9094279371cc1573fed720541555d9ae05a36eb4 (diff)
downloadmongo-953df5a1f04dafa56d1c1fb37f66438ba0698d4e.tar.gz
SERVER-31184 Make sharding tests only consider chunks for collections they actually use
Diffstat (limited to 'jstests/sharding/count1.js')
-rw-r--r--jstests/sharding/count1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/count1.js b/jstests/sharding/count1.js
index 4686d317f6d..3aaa1b25162 100644
--- a/jstests/sharding/count1.js
+++ b/jstests/sharding/count1.js
@@ -35,7 +35,7 @@
primary = s.getPrimaryShard("test").getDB("test");
secondary = s.getOther(primary).getDB("test");
- assert.eq(1, s.config.chunks.count(), "sanity check A");
+ assert.eq(1, s.config.chunks.count({"ns": "test.foo"}), "sanity check A");
db.foo.save({_id: 1, name: "eliot"});
db.foo.save({_id: 2, name: "sara"});