diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-06-30 19:07:59 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-07-07 17:34:52 -0400 |
commit | 2dd8212144ceec187095c776464f18462bad253c (patch) | |
tree | ae7b37a5a6ca71ae321746aff1bbee89d00606f6 /jstests | |
parent | a8fe59a147a02e4be7d4bffc984862164a47dfdf (diff) | |
download | mongo-2dd8212144ceec187095c776464f18462bad253c.tar.gz |
SERVER-18592 CatalogMangerReplicaSet implementation of removeShard method
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/remove1.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/jstests/sharding/remove1.js b/jstests/sharding/remove1.js index d8792c35084..19d911d9fb4 100644 --- a/jstests/sharding/remove1.js +++ b/jstests/sharding/remove1.js @@ -2,9 +2,6 @@ s = new ShardingTest( "remove_shard1", 2 ); assert.eq( 2, s.config.shards.count() , "initial server count wrong" ); -assert.writeOK(s.config.databases.insert({ _id: 'local', - partitioned: false, - primary: 'shard0000'})); assert.writeOK(s.config.databases.insert({ _id: 'needToMove', partitioned: false, primary: 'shard0000'})); @@ -19,8 +16,6 @@ assert.eq( 1, s.config.shards.count() , "removed server still appears in count" assert( !s.admin.runCommand( { removeshard: "shard0001" } ).ok , "allowed removing last shard" ); -assert.isnull( s.config.databases.findOne({_id: 'local'}), 'should have removed local db'); - // should create a shard0002 shard var conn = MongoRunner.runMongod({}); assert( s.admin.runCommand( { addshard: conn.host } ).ok, "failed to add shard" ); |