@@ -14,6 +14,7 @@ import utils from '../utils';
1414import { detectPlatformFromFile } from '../utils/file-type-detector' ;
1515import pc from 'picocolors' ;
1616import BaseProvider from './base_provider' ;
17+ import { HTTP , SOCKET } from '../config/constants' ;
1718
1819export interface MaestroRunAssets {
1920 logs ?: Record < string , string > ;
@@ -1566,7 +1567,7 @@ export default class Maestro extends BaseProvider<MaestroOptions> {
15661567 username : this . credentials . userName ,
15671568 password : this . credentials . accessKey ,
15681569 } ,
1569- timeout : 30000 , // 30 second timeout
1570+ timeout : HTTP . TIMEOUT_MS ,
15701571 } ,
15711572 ) ;
15721573
@@ -1614,7 +1615,7 @@ export default class Maestro extends BaseProvider<MaestroOptions> {
16141615 username : this . credentials . userName ,
16151616 password : this . credentials . accessKey ,
16161617 } ,
1617- timeout : 30000 , // 30 second timeout
1618+ timeout : HTTP . TIMEOUT_MS ,
16181619 } ) ;
16191620
16201621 // Check for version update notification
@@ -2177,7 +2178,7 @@ export default class Maestro extends BaseProvider<MaestroOptions> {
21772178 username : this . credentials . userName ,
21782179 password : this . credentials . accessKey ,
21792180 } ,
2180- timeout : 30000 , // 30 second timeout
2181+ timeout : HTTP . TIMEOUT_MS ,
21812182 } ,
21822183 ) ;
21832184
@@ -2225,7 +2226,7 @@ export default class Maestro extends BaseProvider<MaestroOptions> {
22252226 username : this . credentials . userName ,
22262227 password : this . credentials . accessKey ,
22272228 } ,
2228- timeout : 30000 , // 30 second timeout
2229+ timeout : HTTP . TIMEOUT_MS ,
22292230 } ,
22302231 ) ;
22312232
@@ -2553,9 +2554,9 @@ export default class Maestro extends BaseProvider<MaestroOptions> {
25532554 this . socket = io ( this . updateServer , {
25542555 transports : [ 'websocket' ] ,
25552556 reconnection : true ,
2556- reconnectionAttempts : 3 ,
2557- reconnectionDelay : 1000 ,
2558- timeout : 10000 ,
2557+ reconnectionAttempts : SOCKET . RECONNECTION_ATTEMPTS ,
2558+ reconnectionDelay : SOCKET . RECONNECTION_DELAY_MS ,
2559+ timeout : SOCKET . TIMEOUT_MS ,
25592560 } ) ;
25602561
25612562 this . socket . on ( 'connect' , ( ) => {
0 commit comments