diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2017-04-07 15:31:29 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2017-04-10 09:39:09 -0400 |
commit | 54f2f3b1bcbf950d440daf839962630869a1a082 (patch) | |
tree | e0071abe86d1a8e9a1d6149075303676c8f19853 /jstests/sharding/drop_sharded_db.js | |
parent | 85f26f1d66bbd43dc47b8f1c8b8f25bddf00d733 (diff) | |
download | mongo-54f2f3b1bcbf950d440daf839962630869a1a082.tar.gz |
SERVER-28689 fix bug in drop_sharded_dbs.js where we assert.neq() on an entire array and its member
Diffstat (limited to 'jstests/sharding/drop_sharded_db.js')
-rw-r--r-- | jstests/sharding/drop_sharded_db.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/drop_sharded_db.js b/jstests/sharding/drop_sharded_db.js index 9a0a56ca245..95ca3abd500 100644 --- a/jstests/sharding/drop_sharded_db.js +++ b/jstests/sharding/drop_sharded_db.js @@ -36,10 +36,10 @@ assert.neq(null, dbAOnShard.unsharded.findOne({dummy: 1})); // Drop the non-suffixed db and ensure that it is the only one that was dropped. - dbA.dropDatabase(); + assert.commandWorked(dbA.dropDatabase()); var dbs = mongos.getDBNames(); for (var i = 0; i < dbs.length; i++) { - assert.neq(dbs, "" + dbA); + assert.neq(dbs[i], "" + dbA); } assert.eq(0, config.databases.count({_id: dbA.getName()})); |