Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/XToolTests/CommandOutputTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct CommandOutputTests {
// Give the writer time to enter poll before cancelling, without draining the pipe.
try await Task.sleep(for: .milliseconds(20))
writing.cancel()
let deadline = ContinuousClock.now.advanced(by: .seconds(2))
let deadline = ContinuousClock.now.advanced(by: .seconds(30))
while !finished.value && ContinuousClock.now < deadline {
try await Task.sleep(for: .milliseconds(10))
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/XToolTests/DispatchInputTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ struct DispatchInputTests {
}
#expect(weakReader == nil)
// poll for channel.close() to finish
let deadline = ContinuousClock.now + .seconds(2)
let deadline = ContinuousClock.now + .seconds(30)
while fcntl(descriptor.rawValue, F_GETFL) != flags {
try #require(ContinuousClock.now < deadline, "Timed out waiting for input operation")
try await Task.sleep(for: .milliseconds(1))
Expand Down
2 changes: 1 addition & 1 deletion Tests/XToolTests/InputTestSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Testing

/// Releases suspended reads on timeout so a regression cannot hang the test process.
func withInputTestTimeout<T>(
_ timeout: Duration = .seconds(5),
_ timeout: Duration = .seconds(30),
operation: () async throws -> T,
cleanup: @escaping @Sendable () async -> Void,
) async throws -> T {
Expand Down
Loading