From 5cb3535fd2cf4b4ebf94ada0e3a494dfa246d4ce Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 21 Jul 2022 14:30:20 +0200 Subject: [PATCH] nextcloud: Remove extra timeout logic in tests --- packages/nextcloud/test/helper.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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'); - } } }