Skip to content

Commit

Permalink
another few test fixes #869
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Jan 28, 2014
1 parent cbde8f6 commit d4ea9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jstests/apitest_db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Tests for the db object enhancement
*/

assert( "test" == db, "wrong database currently not test" );
assert( db.getName() == db, "wrong database currently not " + db.getName() );

dd = function( x ){
//print( x );
Expand Down
2 changes: 1 addition & 1 deletion jstests/basicc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ t1.drop();
t2.drop();

var db = db.getSisterDB("test_basicc");
js = "for (i = 0; i < 20000; i++) { db.jstests_basicc1.save( {} ); }";
js = "for (i = 0; i < 20000; i++) { db.getSiblingDB('" + db.getName() + "').jstests_basicc1.save( {} ); }";
pid = startMongoProgramNoConnect( "mongo" , "--eval" , js , db.getMongo().host );
for( var i = 0; i < 20000; ++i ) {
t2.save( {} );
Expand Down

0 comments on commit d4ea9e6

Please sign in to comment.