Browse Source

nextcloud: Remove extra timeout logic in tests

pull/34/head
jld3103 2 years ago
parent
commit
5cb3535fd2
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 6
      packages/nextcloud/test/helper.dart

6
packages/nextcloud/test/helper.dart

@ -201,17 +201,13 @@ class TestHelper {
userAgentOverride: userAgentOverride,
);
var iteration = 0;
while (true) {
// Test will timeout after 30s
try {
await client.core.getStatus();
break;
} catch (_) {
iteration++;
await Future.delayed(const Duration(milliseconds: 100));
if (iteration > 50) {
throw Exception('Failed to wait for Nextcloud instance');
}
}
}

Loading…
Cancel
Save