summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/shard2.js')
-rw-r--r--jstests/sharding/shard2.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/shard2.js b/jstests/sharding/shard2.js
index 41b46158167..7c389f87558 100644
--- a/jstests/sharding/shard2.js
+++ b/jstests/sharding/shard2.js
@@ -27,6 +27,7 @@ s.stopBalancer()
db = s.getDB( "test" );
s.adminCommand( { enablesharding : "test" } );
+s.ensurePrimaryShard('test', 'shard0001');
s.adminCommand( { shardcollection : "test.foo" , key : { num : 1 } } );
assert.eq( 1 , s.config.chunks.count() , "sanity check 1" );