╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────╮ │ 8 const work = xit.workdir; │ │ 9 const hash = xit.hash; │ │10 const net = xit.net; │ │11 - │ │12 -const http_port: u16 = 3000; │ │13 -const ssh_port: u16 = 3001; │ │11 │ │12 test "fetch small" { │ │13 const io = std.testing.io;│ ╰──────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │14 const allocator = std.testing.allocator; │ │18 - try testFetch(.xit, .{ .wire = .http }, io, allocator); │ │15 + try testFetch(.xit, .{ .wire = .http }, 3000, io, allocator); │ │16 if (.windows != builtin.os.tag) { │ │20 - try testFetch(.xit, .{ .wire = .ssh }, io, allocator); │ │17 + try testFetch(.xit, .{ .wire = .ssh }, 3002, io, allocator);│ │18 } │ │19 } │ │20 │ ╰────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │22 const io = std.testing.io; │ │23 const allocator = std.testing.allocator; │ │24 if (.windows != builtin.os.tag) { │ │28 - try testPush(.xit, .{ .wire = .ssh }, io, allocator); │ │25 + try testPush(.xit, .{ .wire = .ssh }, 3004, io, allocator);│ │26 } │ │27 } │ │28 │ ╰───────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │30 const io = std.testing.io; │ │31 const allocator = std.testing.allocator; │ │32 if (.windows != builtin.os.tag) { │ │36 - try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, io, allocator); │ │33 + try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, 3006, io, allocator);│ │34 } │ │35 } │ │36 │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────╮ │38 const io = std.testing.io; │ │39 const allocator = std.testing.allocator; │ │40 if (.windows != builtin.os.tag) { │ │44 - try testPushEvents(.xit, .{ .wire = .ssh }, io, allocator); │ │41 + try testPushEvents(.xit, .{ .wire = .ssh }, 3008, io, allocator);│ │42 } │ │43 } │ │44 │ ╰─────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │45 test "clone small" { │ │46 const io = std.testing.io; │ │47 const allocator = std.testing.allocator; │ │51 - try testClone(.xit, .{ .wire = .http }, false, io, allocator); │ │48 + try testClone(.xit, .{ .wire = .http }, false, 3010, io, allocator); │ │49 if (.windows != builtin.os.tag) { │ │53 - try testClone(.xit, .{ .wire = .ssh }, false, io, allocator); │ │50 + try testClone(.xit, .{ .wire = .ssh }, false, 3012, io, allocator);│ │51 } │ │52 } │ │53 │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────╮ │54 test "clone small subprocess" { │ │55 const io = std.testing.io; │ │56 const allocator = std.testing.allocator; │ │60 - try testClone(.git, .{ .wire = .http }, true, io, allocator); │ │57 + try testClone(.git, .{ .wire = .http }, true, 3014, io, allocator); │ │58 if (.windows != builtin.os.tag) { │ │62 - try testClone(.git, .{ .wire = .ssh }, true, io, allocator); │ │59 + try testClone(.git, .{ .wire = .ssh }, true, 3016, io, allocator);│ │60 } │ │61 } │ │62 │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │63 test "fetch large subprocess" { │ │64 const io = std.testing.io; │ │65 const allocator = std.testing.allocator; │ │69 - try testFetchLarge(.git, .{ .wire = .http }, true, io, allocator); │ │66 + try testFetchLarge(.git, .{ .wire = .http }, true, 3018, io, allocator); │ │67 if (.windows != builtin.os.tag) { │ │71 - try testFetchLarge(.git, .{ .wire = .ssh }, true, io, allocator); │ │68 + try testFetchLarge(.git, .{ .wire = .ssh }, true, 3020, io, allocator);│ │69 } │ │70 } │ │71 │ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │73 const io = std.testing.io; │ │74 const allocator = std.testing.allocator; │ │75 if (.windows != builtin.os.tag) { │ │79 - try testPushLarge(.git, .{ .wire = .ssh }, true, io, allocator); │ │76 + try testPushLarge(.git, .{ .wire = .ssh }, true, 3022, io, allocator);│ │77 } │ │78 } │ │79 │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │81 io: std.Io, │ │82 allocator: std.mem.Allocator, │ │83 comptime temp_dir_name: []const u8, │ │84 + comptime port: u16, │ │85 ) !std.process.Child { │ │86 { │ │87 const priv_key_file = try std.Io.Dir.cwd().createFile(io, temp_dir_name ++ "/key", .{});│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯