File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -113,24 +113,25 @@ function run (options, callback) {
113113 }
114114
115115 const readyFile = path . join ( os . tmpdir ( ) , 'testingbot.ready' )
116-
117- function checkReadyFile ( waitCounter = 0 ) {
116+ let waitCounter = 0
117+
118+ function checkReadyFile ( ) {
118119 fs . access ( readyFile , fs . constants . F_OK , ( error ) => {
119120 if ( ! error ) {
120121 clearInterval ( readyFileChecker )
121122 return onReady ( )
122123 }
123-
124+
125+ waitCounter += 1
126+
124127 if ( waitCounter > 90 ) {
125128 clearInterval ( readyFileChecker )
126129 return onError ( waitCounter )
127130 }
128-
129- waitCounter += 1
130131 } )
131132 }
132-
133- const readyFileChecker = setInterval ( ( ) => checkReadyFile ( ) , 1000 )
133+
134+ const readyFileChecker = setInterval ( checkReadyFile , 1000 )
134135
135136 const args = createArgs ( options )
136137
You can’t perform that action at this time.
0 commit comments