Adapt inotify timeouts in Tests

Inotify event stream is dependent on system usage. Increasing the
timeouts helps not having to repeat the integration tests.
This commit is contained in:
T. R. Bernstein
2026-03-12 00:19:10 +01:00
parent 58a05e9b61
commit e44e1fc9b8

View File

@@ -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