diff --git a/jstests/sharding/cleanup_orphaned_basic.js b/jstests/sharding/cleanup_orphaned_basic.js index 5517376582d..d3943784b59 100644 --- a/jstests/sharding/cleanup_orphaned_basic.js +++ b/jstests/sharding/cleanup_orphaned_basic.js @@ -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()