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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user