@@ -10,25 +10,34 @@ exports['Should correct connect to snitest1.10gen.cc'] = {
10
10
test : function ( configuration , test ) {
11
11
var MongoClient = configuration . require . MongoClient
12
12
13
- console . log ( "====================================================== 0" )
14
13
// Let's write the actual connection code
15
- // MongoClient.connect("mongodb://snitest1.10gen.cc:27777/tests?ssl=true&maxPoolSize=1", {
16
14
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' ,
19
16
} , function ( err , db ) {
20
- console . log ( "====================================================== 1" )
21
- console . dir ( err )
22
17
test . equal ( null , err ) ;
23
- // test.ok(db != null);
18
+ db . close ( ) ;
19
+ test . done ( ) ;
20
+ } ) ;
21
+ }
22
+ }
24
23
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" } } ,
27
29
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 ( ) ;
32
41
} ) ;
33
42
}
34
43
}
0 commit comments