File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ var KARMA_PROXY_PATH = constants.KARMA_PROXY_PATH
14
14
var socket = io ( location . host , {
15
15
reconnectionDelay : 500 ,
16
16
reconnectionDelayMax : Infinity ,
17
- timeout : 2000 ,
17
+ timeout : 20000 ,
18
18
path : KARMA_PROXY_PATH + KARMA_URL_ROOT . substr ( 1 ) + 'socket.io' ,
19
19
'sync disconnect on unload' : true
20
20
} )
Original file line number Diff line number Diff line change @@ -151,15 +151,15 @@ class Browser {
151
151
}
152
152
153
153
if ( this . state === CONNECTED ) {
154
- this . disconnect ( )
154
+ this . disconnect ( 'client disconnected from CONNECTED state' )
155
155
} else if ( this . state === CONFIGURING || this . state === EXECUTING ) {
156
156
this . log . debug ( 'Disconnected during run, waiting %sms for reconnecting.' , this . disconnectDelay )
157
157
this . state = EXECUTING_DISCONNECTED
158
158
159
159
this . pendingDisconnect = this . timer . setTimeout ( ( ) => {
160
160
this . lastResult . totalTimeEnd ( )
161
161
this . lastResult . disconnected = true
162
- this . disconnect ( )
162
+ this . disconnect ( `reconnect failed before timeout of ${ this . disconnectDelay } ms` )
163
163
this . emitter . emit ( 'browser_complete' , this )
164
164
} , this . disconnectDelay )
165
165
You can’t perform that action at this time.
0 commit comments