summaryrefslogtreecommitdiff
path: root/jstests/sharding/mongos_no_detect_sharding.js
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2011-12-21 13:05:04 -0500
committerGreg Studer <greg@10gen.com>2011-12-21 13:09:09 -0500
commit51054057b2ed432ef925cb48bcb28e5684d8b76d (patch)
tree2a92cbab31d1d3f2cd00f775b93092ccace50979 /jstests/sharding/mongos_no_detect_sharding.js
parentd98f37b72dcf0ee64bf621a1f82d753203e10ecc (diff)
downloadmongo-51054057b2ed432ef925cb48bcb28e5684d8b76d.tar.gz
buildbot and SERVER-4526 mongos_no_detect_sharding.js split logic may change, explicitly check for shard versioning turned on
Diffstat (limited to 'jstests/sharding/mongos_no_detect_sharding.js')
-rw-r--r--jstests/sharding/mongos_no_detect_sharding.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/sharding/mongos_no_detect_sharding.js b/jstests/sharding/mongos_no_detect_sharding.js
index 61a094f51ec..d5e9b53bf34 100644
--- a/jstests/sharding/mongos_no_detect_sharding.js
+++ b/jstests/sharding/mongos_no_detect_sharding.js
@@ -20,6 +20,8 @@ print( "Sharding collection..." )
var admin = mongos.getDB("admin")
+assert.eq( coll.getShardVersion().ok, 0 )
+
admin.runCommand({ enableSharding : "test" })
admin.runCommand({ shardCollection : "test.foo", key : { _id : 1 } })
@@ -34,6 +36,7 @@ coll.getDB().getLastError()
config.printShardingStatus( true )
-assert.gt( config.chunks.find({ _id : /test.foo/ }).itcount(), 1 )
+assert.eq( coll.getShardVersion().ok, 1 )
+assert.eq( 101, coll.find().itcount() )
st.stop() \ No newline at end of file