align timeout for all platforms (#834)
Signed-off-by: michael_crosby <michael_crosby@apple.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user