@@ -871,55 +871,6 @@ exports['Should Fail due to bufferMaxEntries = 0 not causing any buffering'] = {
871
871
}
872
872
}
873
873
874
- // exports['Should correctly receive ping and ha events'] = {
875
- // metadata: { requires: { topology: 'replicaset' } },
876
- //
877
- // // The actual test we wish to run
878
- // test: function(configuration, test) {
879
- // var ReplSet = configuration.require.ReplSet
880
- // , Server = configuration.require.Server
881
- // , Db = configuration.require.Db;
882
- //
883
- // // Replica configuration
884
- // var replSet = new ReplSet([
885
- // new Server(configuration.host, configuration.port),
886
- // new Server(configuration.host, configuration.port + 1),
887
- // new Server(configuration.host, configuration.port + 2)
888
- // ],
889
- // {rs_name:configuration.replicasetName}
890
- // );
891
- //
892
- // // Open the db connection
893
- // new Db('integration_test_', replSet, {w:1}).open(function(err, db) {
894
- // test.equal(null, err)
895
- // var ha_connect = false;
896
- // var ha_ismaster = false;
897
- // var ping = false;
898
- //
899
- // // Listen to the ha and ping events
900
- // db.serverConfig.once("ha_connect", function(err) {
901
- // ha_connect = true;
902
- // });
903
- //
904
- // db.serverConfig.once("ha_ismaster", function(err, result) {
905
- // ha_ismaster = true;
906
- // });
907
- //
908
- // db.serverConfig.once("ping", function(err, r) {
909
- // ping = true;
910
- // });
911
- //
912
- // var interval = setInterval(function() {
913
- // if(ping && ha_connect && ha_ismaster) {
914
- // clearInterval(interval);
915
- // db.close();
916
- // test.done();
917
- // }
918
- // }, 100);
919
- // });
920
- // }
921
- // }
922
-
923
874
/**
924
875
* @ignore
925
876
*/
@@ -1170,7 +1121,7 @@ exports['Should Correctly remove server going into recovery mode'] = {
1170
1121
CoreConnection . disableConnectionAccounting ( ) ;
1171
1122
1172
1123
test . done ( ) ;
1173
- } , 200 ) ;
1124
+ } , 1000 ) ;
1174
1125
} , 10000 ) ;
1175
1126
} ) ;
1176
1127
}
@@ -1464,14 +1415,6 @@ exports['Should correctly modify the server reconnectTries for all replset insta
1464
1415
1465
1416
test . done ( ) ;
1466
1417
} , 200 ) ;
1467
-
1468
- // // Connection account tests
1469
- // test.equal(0, Object.keys(CoreConnection.connections()).length);
1470
- // test.equal(0, Object.keys(CoreServer.servers()).length);
1471
- // CoreServer.disableServerAccounting();
1472
- // CoreConnection.disableConnectionAccounting();
1473
- //
1474
- // test.done();
1475
1418
} ) ;
1476
1419
}
1477
1420
}
0 commit comments