SERVER-22099 remove an unreliable check in cleanupOrphaned test

(cherry picked from commit 6b95d2ee13)
This commit is contained in:
Misha Tyulenev 2016-01-07 15:15:14 -05:00
parent 5678318b99
commit 3a1518befd

View File

@ -52,13 +52,6 @@ var shardAdmin = st.shard0.getDB('admin');
var badNS = ' \\/."*<>:|?';
assert.commandFailed(shardAdmin.runCommand({cleanupOrphaned: badNS}));
/*****************************************************************************
* Unsharded namespaces.
****************************************************************************/
// cleanupOrphaned fails on unsharded database.
assert.commandFailed(shardAdmin.runCommand({cleanupOrphaned: ns}));
// cleanupOrphaned works on sharded collection.
assert.commandWorked(mongosAdmin.runCommand({
enableSharding: coll.getDB().getName()