@@ -10,25 +10,34 @@ exports['Should correct connect to snitest1.10gen.cc'] = {
1010 test : function ( configuration , test ) {
1111 var MongoClient = configuration . require . MongoClient
1212
13- console . log ( "====================================================== 0" )
1413 // Let's write the actual connection code
15- // MongoClient.connect("mongodb://snitest1.10gen.cc:27777/tests?ssl=true&maxPoolSize=1", {
1614 MongoClient . connect ( "mongodb://snitest2.mongodb.com:27777/?ssl=true" , {
17- // MongoClient.connect("mongodb://snitest2.cloudmanager.mongodb.com:27777/tests?ssl=true&maxPoolSize=1", {
18- servername : 'cloudmanager.mongodb.com' ,
15+ servername : 'snitest1.10gen.cc' ,
1916 } , function ( err , db ) {
20- console . log ( "====================================================== 1" )
21- console . dir ( err )
2217 test . equal ( null , err ) ;
23- // test.ok(db != null);
18+ db . close ( ) ;
19+ test . done ( ) ;
20+ } ) ;
21+ }
22+ }
2423
25- // db.collection('test').find().toArray(function(err, docs) {
26- // test.equal(null, err);
24+ /**
25+ * @ignore
26+ */
27+ exports [ 'Should correct connect to snitest2.mongodb.com' ] = {
28+ metadata : { requires : { topology : 'sni' , os : "!win32" } } ,
2729
28- // test.ok(true, docs[0].kerberos);
29- db . close ( ) ;
30- test . done ( ) ;
31- // });
30+ // The actual test we wish to run
31+ test : function ( configuration , test ) {
32+ var MongoClient = configuration . require . MongoClient
33+
34+ // Let's write the actual connection code
35+ MongoClient . connect ( "mongodb://snitest2.mongodb.com:27777/?ssl=true" , {
36+ servername : 'snitest2.mongodb.com' ,
37+ } , function ( err , db ) {
38+ test . equal ( null , err ) ;
39+ db . close ( ) ;
40+ test . done ( ) ;
3241 } ) ;
3342 }
3443}
0 commit comments