align timeout for all platforms (#834)

Signed-off-by: michael_crosby <michael_crosby@apple.com>
This commit is contained in:
Michael Crosby
2026-08-10 09:42:16 -04:00
committed by GitHub
parent b9c65e59b2
commit fc2b9bd816
+1 -7
View File
@@ -125,14 +125,8 @@ public final class LinuxProcess: Sendable {
extension LinuxProcess {
func setupIO(listeners: [VsockListener?]) async throws -> [FileHandle?] {
// Nested virtualization (x86_64 CI) is dramatically slower to bring the
// guest vsock listeners up than native arm64 virt, so allow a longer
// window there while keeping the arm64 path tight.
#if arch(x86_64)
let ioTimeout: UInt32 = 30
#else
let ioTimeout: UInt32 = 3
#endif
let handles = try await Timeout.run(seconds: ioTimeout) {
try await withThrowingTaskGroup(of: (Int, FileHandle?).self) { group in
var results = [FileHandle?](repeating: nil, count: 3)