You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,7 +70,7 @@ describe('integration tests', function () {
69
70
70
71
clientOptions={
71
72
hostname: '127.0.0.1',
72
-
port: PORT,
73
+
port: portNumber,
73
74
multiplex: false,
74
75
ackTimeout: 200
75
76
};
@@ -97,7 +98,7 @@ describe('integration tests', function () {
97
98
}
98
99
cleanupTasks.push(newPromise(function(resolve){
99
100
server.close(function(){
100
-
PORT++;
101
+
portNumber++;
101
102
resolve();
102
103
});
103
104
}));
@@ -840,7 +841,7 @@ describe('integration tests', function () {
840
841
it('should destroy all references of socket when socketClusterClient.destroy(socket) is called if the socket was created with query parameters',function(){
841
842
varclientOptionsB={
842
843
hostname: '127.0.0.1',
843
-
port: PORT,
844
+
port: portNumber,
844
845
multiplex: true,
845
846
ackTimeout: 200,
846
847
query: {foo: 123,bar: 456}
@@ -850,7 +851,7 @@ describe('integration tests', function () {
850
851
851
852
varclientOptionsB={
852
853
hostname: '127.0.0.1',
853
-
port: PORT,
854
+
port: portNumber,
854
855
multiplex: true,
855
856
ackTimeout: 200,
856
857
query: {foo: 123,bar: 789}
@@ -860,7 +861,7 @@ describe('integration tests', function () {
860
861
861
862
varclientOptionsB2={
862
863
hostname: '127.0.0.1',
863
-
port: PORT,
864
+
port: portNumber,
864
865
multiplex: true,
865
866
ackTimeout: 200,
866
867
query: {foo: 123,bar: 789}
@@ -1237,4 +1238,53 @@ describe('integration tests', function () {
1237
1238
done();
1238
1239
});
1239
1240
});
1241
+
1242
+
describe('ping/pong',function(){
1243
+
it('should disconnect if ping is not received before timeout',function(done){
0 commit comments