diff options
author | Greg Studer <greg@10gen.com> | 2011-12-21 13:05:04 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2011-12-21 13:09:09 -0500 |
commit | 51054057b2ed432ef925cb48bcb28e5684d8b76d (patch) | |
tree | 2a92cbab31d1d3f2cd00f775b93092ccace50979 /jstests/sharding/mongos_no_detect_sharding.js | |
parent | d98f37b72dcf0ee64bf621a1f82d753203e10ecc (diff) | |
download | mongo-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.js | 5 |
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 |