Permalink
Browse files

stability tests

  • Loading branch information...
1 parent a7f063d commit e42ab7108698af226f3e64d86244596bf5ab3026 @erh erh committed Jun 21, 2010
Showing with 12 additions and 3 deletions.
  1. +1 −1 db/database.cpp
  2. +3 −1 db/pdfile.cpp
  3. +5 −0 jstests/_runner.js
  4. +1 −1 jstests/dbadmin.js
  5. +2 −0 jstests/dbcase.js
View
@@ -54,7 +54,7 @@ namespace mongo {
continue;
stringstream ss;
- ss << "db already exists with different case: " << others[i];
+ ss << "db already exists with different case other: [" << others[i] << "] me [" << nm << "]";
uasserted( 13297 , ss.str() );
}
}
View
@@ -966,7 +966,7 @@ namespace mongo {
*i, ordering, dupsAllowed, idx);
}
catch (AssertionException& e) {
- if( e.code == 10287 && idxNo == d->nIndexes ) {
+ if( e.getCode() == 10287 && idxNo == d->nIndexes ) {
DEV log() << "info: caught key already in index on bg indexing (ok)" << endl;
continue;
}
@@ -1831,6 +1831,8 @@ namespace mongo {
dbs.insert( i->first );
}
+ currentClient.get()->getContext()->clear();
+
BSONObjBuilder bb( result.subarrayStart( "dbs" ) );
int n = 0;
int nNotClosed = 0;
View
@@ -3,6 +3,8 @@
//
var files = listFiles("jstests");
+var runnerStart = new Date()
+
files.forEach(
function(x) {
@@ -21,3 +23,6 @@ files.forEach(
);
+var runnerEnd = new Date()
+
+print( "total runner time: " + ( ( runnerEnd.getTime() - runnerStart.getTime() ) / 1000 ) + "secs" )
View
@@ -16,6 +16,6 @@ else {
t.save( { x : 1 } );
res = db._adminCommand( "listDatabases" );
-assert( res.databases.length > 0 , "listDatabases 1" );
+assert( res.databases && res.databases.length > 0 , "listDatabases 1 " + tojson(res) );
// TODO: add more tests here
View
@@ -11,3 +11,5 @@ assert.eq( 0 , db.getLastErrorObj().code || 0 , "A" )
b.foo.save( { x : 1 } )
assert.eq( 13297 , db.getLastErrorObj().code || 0 , "A" )
+a.dropDatabase();
+b.dropDatabase();

0 comments on commit e42ab71

Please sign in to comment.