diff options
author | Aaron <aaron@10gen.com> | 2010-03-15 23:18:49 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-03-15 23:18:49 -0700 |
commit | 7aaaaa01a7367fe868b0e16a595fd25bb68c5423 (patch) | |
tree | 259639630a05beff914594360237cdf2a3583dad /jstests/parallel/basicPlus.js | |
parent | 8f28569fa0cf8fb4ffcaa3011e34da657bc3ec28 (diff) | |
download | mongo-7aaaaa01a7367fe868b0e16a595fd25bb68c5423.tar.gz |
validate all collections in basic parallel tests
Diffstat (limited to 'jstests/parallel/basicPlus.js')
-rw-r--r-- | jstests/parallel/basicPlus.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/parallel/basicPlus.js b/jstests/parallel/basicPlus.js index d6f9a4d0fb8..4d65d255486 100644 --- a/jstests/parallel/basicPlus.js +++ b/jstests/parallel/basicPlus.js @@ -23,4 +23,8 @@ for( var i = 4; i < 8; ++i ) { t.run( "one or more tests failed", true ); -assert( c.validate().valid, "validate failed" );
\ No newline at end of file +assert( c.validate().valid, "validate failed" ); +db.getCollectionNames().forEach( function( x ) { + v = db[ x ].validate(); + assert( v.valid, "validate failed for " + x + " with " + tojson( v ) ); + } );
\ No newline at end of file |