|
|
@ -140,11 +140,15 @@ Future<TestNextcloudClient> getTestClient( |
|
|
|
try { |
|
|
|
try { |
|
|
|
await client.core.getStatus(); |
|
|
|
await client.core.getStatus(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} on DynamiteApiException catch (error) { |
|
|
|
} catch (error) { |
|
|
|
i++; |
|
|
|
if (error is HttpException || error is DynamiteApiException) { |
|
|
|
await Future<void>.delayed(const Duration(milliseconds: 100)); |
|
|
|
i++; |
|
|
|
if (i >= 30) { |
|
|
|
await Future<void>.delayed(const Duration(milliseconds: 100)); |
|
|
|
throw TimeoutException('Failed to get the status of the Server. $error'); |
|
|
|
if (i >= 300) { |
|
|
|
|
|
|
|
throw TimeoutException('Failed to get the status of the Server. $error'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
rethrow; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|