Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't connect explicitly

  • Loading branch information...
commit b67533238a3c908ff1760e1a0fe8b6885cedb727 1 parent 09bbd0e
Eliot Horowitz erh authored
Showing with 6 additions and 56 deletions.
  1. +0 −1  jstests/apitest_db.js
  2. +0 −1  jstests/apitest_dbcollection.js
  3. +0 −1  jstests/auth.js
  4. +0 −1  jstests/basic1.js
  5. +0 −1  jstests/basic2.js
  6. +0 −1  jstests/basic3.js
  7. +0 −1  jstests/basic4.js
  8. +0 −1  jstests/basic5.js
  9. +0 −1  jstests/basic6.js
  10. +0 −1  jstests/basic7.js
  11. +0 −1  jstests/capped.js
  12. +0 −1  jstests/capped2.js
  13. +0 −1  jstests/cursor2.js
  14. +0 −1  jstests/cursor3.js
  15. +0 −1  jstests/cursor4.js
  16. +0 −1  jstests/cursor5.js
  17. +0 −1  jstests/cursor6.js
  18. +0 −1  jstests/cursor7.js
  19. +0 −1  jstests/error1.js
  20. +0 −1  jstests/find1.js
  21. +1 −2  jstests/find2.js
  22. +0 −1  jstests/find3.js
  23. +0 −1  jstests/index1.js
  24. +1 −2  jstests/index2.js
  25. +0 −1  jstests/index3.js
  26. +0 −1  jstests/index4.js
  27. +0 −1  jstests/index5.js
  28. +0 −1  jstests/index6.js
  29. +0 −1  jstests/index7.js
  30. +1 −2  jstests/index_check1.js
  31. +1 −2  jstests/jni1.js
  32. +0 −1  jstests/jni2.js
  33. +0 −1  jstests/jni3.js
  34. +0 −1  jstests/jni4.js
  35. +0 −1  jstests/jni7.js
  36. +1 −2  jstests/jni8.js
  37. +0 −1  jstests/jni9.js
  38. +0 −1  jstests/objid1.js
  39. +0 −1  jstests/objid2.js
  40. +0 −1  jstests/objid3.js
  41. +0 −1  jstests/remove.js
  42. +0 −1  jstests/remove2.js
  43. +0 −1  jstests/remove4.js
  44. +0 −1  jstests/sort1.js
  45. +0 −1  jstests/sort2.js
  46. +0 −1  jstests/sort3.js
  47. +0 −1  jstests/sort_numeric.js
  48. +0 −1  jstests/uniqueness.js
  49. +0 −1  jstests/update.js
  50. +1 −2  jstests/update2.js
1  jstests/apitest_db.js
View
@@ -8,7 +8,6 @@ dd = function( x ){
dd( "a" );
-db = connect( "test" )
dd( "b" );
1  jstests/apitest_dbcollection.js
View
@@ -2,7 +2,6 @@
* Tests for the db collection
*/
-db = connect( "test" )
/*
1  jstests/auth.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" )
users = db.getCollection( "system.users" );
users.remove( {} );
1  jstests/basic1.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.getCollection( "basic1" );
assert( t.drop() );
1  jstests/basic2.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.getCollection( "basic2" );
t.drop();
1  jstests/basic3.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.getCollection( "foo" );
t.find( { "a.b" : 1 } ).toArray();
1  jstests/basic4.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.getCollection( "basic4" );
t.drop();
1  jstests/basic5.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.getCollection( "basic5" );
t.drop();
1  jstests/basic6.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.basic6;
t.findOne();
1  jstests/basic7.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" )
t = db.basic7;
t.drop();
1  jstests/capped.js
View
@@ -1,4 +1,3 @@
-db=connect("test");
db.capped.drop();
db.createCollection("cptest", {capped:true, size:30000});
t = db.cptest;
1  jstests/capped2.js
View
@@ -1,4 +1,3 @@
-db=connect("test");
db.capped2.drop();
db._dbCommand( { create: "capped2", capped: true, size: 1000, $nExtents: 11 } );
t = db.capped2;
1  jstests/cursor2.js
View
@@ -25,5 +25,4 @@ function testCursorCountVsArrLen(dbConn) {
}
-db = connect("test")
testCursorCountVsArrLen(db);
1  jstests/cursor3.js
View
@@ -31,5 +31,4 @@ function testConstrainedFindWithOrdering( db ) {
checkResults( [ 1, 0 ], r.find( { a: { $lte: 1 } } ).sort( { a: -1 } ) );
}
-db = connect( "test" );
testConstrainedFindWithOrdering( db );
1  jstests/cursor4.js
View
@@ -44,5 +44,4 @@ function testConstrainedFindMultiFieldSorting( db ) {
checkResults( reverseEntries.slice( 1, 4 ), r.find( { a: { $lt: 2 }, b: { $gt: 0 } } ).sort( { a: -1, b: -1 } ) );
}
-db = connect( "test" );
testConstrainedFindMultiFieldSorting( db );
1  jstests/cursor5.js
View
@@ -33,5 +33,4 @@ function testBoundsWithSubobjectIndexes( db ) {
checkResults( [ z[ 3 ], z[ 1 ] ], r.find( { e: { $gt: 4 }, "a.b": 1 } ).sort( rIdx ) );
}
-db = connect( "test" );
testBoundsWithSubobjectIndexes( db );
1  jstests/cursor6.js
View
@@ -68,7 +68,6 @@ function check( indexed ) {
eq( z[ 0 ], f[ 3 ] );
}
-db = connect( "test" );
db.setProfilingLevel( 1 );
r = db.ed_db_cursor6;
r.drop();
1  jstests/cursor7.js
View
@@ -39,5 +39,4 @@ function testMultipleInequalities( db ) {
checkResults( [ z[ 2 ], z[ 1 ] ], r.find( { a: { $gte: 1, $lte: 7, $gt: 2, $lt: 6 }, b: { $gte: 2, $lte: 8, $gt: 3, $lt: 7 } } ).sort( rIdx ) );
}
-db = connect( "test" );
testMultipleInequalities( db );
1  jstests/error1.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
// test 1
db.$cmd.findOne({reseterror:1});
1  jstests/find1.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.find1;
t.drop();
3  jstests/find2.js
View
@@ -13,5 +13,4 @@ function testObjectIdFind( db ) {
assert( f[ 1 ]._id < f[ 2 ]._id );
}
-db = connect( "test" );
-testObjectIdFind( db );
+testObjectIdFind( db );
1  jstests/find3.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.find3;
t.drop();
1  jstests/index1.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.embeddedIndexTest;
t.remove( {} );
3  jstests/index2.js
View
@@ -1,7 +1,6 @@
/* test indexing where the key is an embedded object.
*/
-db = connect( "test" );
t = db.embeddedIndexTest2;
t.drop();
@@ -38,4 +37,4 @@ assert( t.find({z:{a:18}}).length() == 1 );
assert( t.find().sort( { z : 1 } ).length() == 4 );
assert( t.find().sort( { z : -1 } ).length() == 4 );
-assert(t.validate().valid);
+assert(t.validate().valid);
1  jstests/index3.js
View
@@ -1,5 +1,4 @@
-db = connect( "foo");
t = db.index3;
t.dropIndexes();
1  jstests/index4.js
View
@@ -1,6 +1,5 @@
// index4.js
-//db = connect( "test" );
t = db.index4;
t.drop();
1  jstests/index5.js
View
@@ -12,7 +12,6 @@ function validate() {
assert.eq( 1, r[ 1 ].a );
}
-db = connect( "test" );
t = db.index5;
t.drop();
1  jstests/index6.js
View
@@ -1,6 +1,5 @@
// index6.js Test indexes on array subelements.
-db = connect( "test" );
r = db.ed.db.index5;
r.drop();
1  jstests/index7.js
View
@@ -25,7 +25,6 @@ function both( k, q ) {
end( k, q );
}
-db = connect( "test" );
f = db.ed_db_index7;
f.drop();
3  jstests/index_check1.js
View
@@ -1,4 +1,3 @@
-db = connect("ed_db_index_check1");
db.somecollection.drop();
@@ -24,4 +23,4 @@ db.somecollection.ensureIndex({a:1});
assert(db.system.namespaces.find({name:/somecollection/}).length() == 2);
-assert(db.somecollection.validate().valid);
+assert(db.somecollection.validate().valid);
3  jstests/jni1.js
View
@@ -1,6 +1,5 @@
-db = connect( "foo" );
t = db.jni1;
t.remove( {} );
@@ -10,4 +9,4 @@ assert( 2 == t.find().length() );
assert( 2 == t.find( { $where : function(){ return 1; } } ).length() );
assert( 1 == t.find( { $where : function(){ return obj.z == 2; } } ).length() );
-assert(t.validate().valid);
+assert(t.validate().valid);
1  jstests/jni2.js
View
@@ -1,5 +1,4 @@
-db = connect( "foo" );
t = db.jni2;
t.remove( {} );
1  jstests/jni3.js
View
@@ -1,5 +1,4 @@
-db = connect( "foo");
t = db.jni3;
for( z = 0; z < 2; z++ ) {
1  jstests/jni4.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.jni4;
t.drop();
1  jstests/jni7.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.jni7;
t.drop();
3  jstests/jni8.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.jni8;
t.drop();
@@ -10,4 +9,4 @@ assert.eq( 1 , t.find( function(){ return this.b[0] == 2; } ).length() );
assert.eq( 0 , t.find( function(){ return this.b[0] == 3; } ).length() );
assert.eq( 1 , t.find( function(){ return this.b[1] == 3; } ).length() );
-assert(t.validate().valid);
+assert(t.validate().valid);
1  jstests/jni9.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
c = db.jni9;
c.drop();
1  jstests/objid1.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.objid1;
t.drop();
1  jstests/objid2.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.objid2;
t.drop();
1  jstests/objid3.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.objid3;
t.drop();
1  jstests/remove.js
View
@@ -1,7 +1,6 @@
// remove.js
// unit test for db remove
-db = connect( "test" );
t = db.removetest;
function f(n,dir) {
1  jstests/remove2.js
View
@@ -1,7 +1,6 @@
// remove2.js
// a unit test for db remove
-db = connect( "test" );
t = db.removetest2;
function f() {
1  jstests/remove4.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
t = db.remove4;
t.drop();
1  jstests/sort1.js
View
@@ -1,6 +1,5 @@
// test sorting, mainly a test ver simple with no index
-db = connect( "test" );
t = db.sorrrt;
t.drop();
1  jstests/sort2.js
View
@@ -1,6 +1,5 @@
// test sorting, mainly a test ver simple with no index
-db = connect( "test" );
t = db.sorrrt2;
t.drop();
1  jstests/sort3.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.sort3;
t.drop();
1  jstests/sort_numeric.js
View
@@ -1,5 +1,4 @@
-db = connect( "test" );
t = db.sort_numeric;
t.drop();
1  jstests/uniqueness.js
View
@@ -1,4 +1,3 @@
-//db=connect("192.168.58.1/test", u , p);
t = db.foo;
1  jstests/update.js
View
@@ -1,4 +1,3 @@
-db = connect("ed_db_update");
asdf = db.getCollection( "asdf" );
3  jstests/update2.js
View
@@ -1,4 +1,3 @@
-db = connect( "test" );
f = db.ed_db_update2;
f.drop();
@@ -16,4 +15,4 @@ assert.eq( 4, f.findOne().a );
f.drop();
f.save( { a: 4 } );
f.update( { a: 4 }, { $inc: { a: 2 } } );
-assert.eq( 6, f.findOne().a );
+assert.eq( 6, f.findOne().a );
Please sign in to comment.
Something went wrong with that request. Please try again.