diff --git a/packages/nextcloud/test/helper.dart b/packages/nextcloud/test/helper.dart index 1b890603..72a27f93 100644 --- a/packages/nextcloud/test/helper.dart +++ b/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'); - } } }