From e44e1fc9b89d9f74d3c059320232e5b324e8e3bc Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" Date: Thu, 12 Mar 2026 00:19:10 +0100 Subject: [PATCH] Adapt inotify timeouts in Tests Inotify event stream is dependent on system usage. Increasing the timeouts helps not having to repeat the integration tests. --- .../Utilities/getEventsForTrigger.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/InotifyIntegrationTests/Utilities/getEventsForTrigger.swift b/Tests/InotifyIntegrationTests/Utilities/getEventsForTrigger.swift index 4c5b80a..42afa39 100644 --- a/Tests/InotifyIntegrationTests/Utilities/getEventsForTrigger.swift +++ b/Tests/InotifyIntegrationTests/Utilities/getEventsForTrigger.swift @@ -16,9 +16,9 @@ func getEventsForTrigger( return events } - try await Task.sleep(for: .milliseconds(200)) + try await Task.sleep(for: .milliseconds(100)) try await trigger(dir) - try await Task.sleep(for: .milliseconds(200)) + try await Task.sleep(for: .milliseconds(500)) eventTask.cancel() return await eventTask.value