File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
modules/integration/src/test/scala/scala/cli/integration Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,17 @@ object TestUtil {
133133 try run
134134 catch {
135135 case t : Throwable =>
136- if (count >= maxAttempts)
136+ if (count >= maxAttempts) {
137+ System .err.println(s " $maxAttempts attempts failed, caught $t. Giving up. " )
137138 throw new Exception (t)
139+ }
138140 else {
139- System .err.println(s " Caught $t, trying again in $waitDuration… " )
141+ val remainingAttempts = maxAttempts - count
142+ System .err.println(
143+ s " Caught $t, $remainingAttempts attempts remaining, trying again in $waitDuration… "
144+ )
140145 Thread .sleep(waitDuration.toMillis)
146+ System .err.println(s " Trying attempt $count out of $maxAttempts... " )
141147 helper(count + 1 )
142148 }
143149 }
You can’t perform that action at this time.
0 commit comments