diff options
author | Aaron <aaron@10gen.com> | 2011-12-19 16:08:32 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-12-19 16:08:32 -0800 |
commit | eb4132d63e0b5c9a982a1a9cc8fbab3cba9578bf (patch) | |
tree | b7fd7334b93a8653bdc9fa71a6bc05ce0f118ac5 /jstests/parallel | |
parent | 09de9bd82602ff94807cc8edd20e7eee6d712c90 (diff) | |
download | mongo-eb4132d63e0b5c9a982a1a9cc8fbab3cba9578bf.tar.gz |
add debugging for parallel/repl.js test failures
Diffstat (limited to 'jstests/parallel')
-rw-r--r-- | jstests/parallel/repl.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/parallel/repl.js b/jstests/parallel/repl.js index 919b0d795ac..c296506da6c 100644 --- a/jstests/parallel/repl.js +++ b/jstests/parallel/repl.js @@ -43,8 +43,11 @@ t.add( EventGenerator.dispatch, g.getEvents() ); t.run( "one or more tests failed" ); -assert( m.getDB( "test" )[ baseName ].validate().valid ); -assert( s.getDB( "test" )[ baseName ].validate().valid ); +masterValidation = m.getDB( "test" )[ baseName ].validate(); +assert( masterValidation.valid, tojson( masterValidation ) ); + +slaveValidation = s.getDB( "test" )[ baseName ].validate(); +assert( slaveValidation.valid, tojson( slaveValidation ) ); assert.soon( function() { mh = m.getDB( "test" ).runCommand( "dbhash" ); |