diff options
author | Greg Studer <greg@10gen.com> | 2013-03-01 11:18:00 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-03-01 11:18:00 -0500 |
commit | 7e5a331e53569c1c4a239cf3a972bef3eef67afa (patch) | |
tree | 6d4c36e4687e3f55541ef82ed633817ca877a527 | |
parent | 1f7902206e31305e336c155166a6c12ae0f72ab3 (diff) | |
download | mongo-7e5a331e53569c1c4a239cf3a972bef3eef67afa.tar.gz |
buildbot version2.js use assert.eq to make it simpler to figure out what went wrong
-rw-r--r-- | jstests/sharding/version2.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/version2.js b/jstests/sharding/version2.js index af637e3695c..2944e5cdc45 100644 --- a/jstests/sharding/version2.js +++ b/jstests/sharding/version2.js @@ -10,8 +10,8 @@ a = s._connections[0].getDB( "admin" ); // setup from one client -assert( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).mine.i == 0 ); -assert( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).global.i == 0 ); +assert.eq( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).mine.i, 0 ); +assert.eq( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).global.i, 0 ); assert( a.runCommand( { "setShardVersion" : "alleyinsider.foo" , configdb : s._configDB , authoritative : true , version : new NumberLong( 4294967296 ), // 1|0 @@ -19,8 +19,8 @@ assert( a.runCommand( { "setShardVersion" : "alleyinsider.foo" , configdb : s._c printjson( s.config.chunks.findOne() ); -assert( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).mine.t == 1 ); -assert( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).global.t == 1 ); +assert.eq( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).mine.t, 1 ); +assert.eq( a.runCommand( { "getShardVersion" : "alleyinsider.foo" , configdb : s._configDB } ).global.t, 1 ); // from another client |