╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────╮ │515 fn testPushCreatesMissingRepo( │ │516 comptime repo_kind: rp.RepoKind, │ │517 comptime transport_def: net.TransportDefinition,│ │518 + comptime port: u16, │ │519 io: std.Io, │ │520 allocator: std.mem.Allocator, │ │521 ) !void { │ ╰─────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │531 defer cwd.deleteTree(io, temp_dir_name) catch {}; │ │532 defer temp_dir.close(io); │ │533 │ │533 - var server_process = try runServer(io, allocator, temp_dir_name); │ │534 + var server_process = try runServer(io, allocator, temp_dir_name, port);│ │535 defer _ = server_process.kill(io); │ │536 │ │537 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │556 // the repo is not pre-registered; the push should mint the repo event under │ │557 // admin and create the repo on disk │ │558 { │ │558 - const remote_url = try remoteUrl(transport_def, allocator, "testrepo"); │ │559 + const remote_url = try remoteUrl(transport_def, allocator, "testrepo", port); │ │560 defer allocator.free(remote_url); │ │561 │ │562 try client_repo.addRemote(io, allocator, .{ .name = "origin", .value = remote_url });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │567 .file => false, │ │568 .wire => |wire_kind| .ssh == wire_kind, │ │569 }; │ │569 - const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name); │ │570 + const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name, port);│ │571 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ │572 │ │573 try client_repo.push( │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────╮ │597 fn testPushEvents( │ │598 comptime repo_kind: rp.RepoKind, │ │599 comptime transport_def: net.TransportDefinition,│ │600 + comptime port: u16, │ │601 io: std.Io, │ │602 allocator: std.mem.Allocator, │ │603 ) !void { │ ╰─────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │615 defer temp_dir.close(io); │ │616 │ │617 // init server │ │616 - var server_process = try runServer(io, allocator, temp_dir_name); │ │618 + var server_process = try runServer(io, allocator, temp_dir_name, port);│ │619 defer _ = server_process.kill(io); │ │620 │ │621 // register the repo under admin and locate its on-disk directory │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │638 │ │639 // add remote │ │640 { │ │639 - const remote_url = try remoteUrl(transport_def, allocator, "testrepo"); │ │641 + const remote_url = try remoteUrl(transport_def, allocator, "testrepo", port); │ │642 defer allocator.free(remote_url); │ │643 │ │644 try client_repo.addRemote(io, allocator, .{ .name = "origin", .value = remote_url });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │648 .file => false, │ │649 .wire => |wire_kind| .ssh == wire_kind, │ │650 }; │ │649 - const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name); │ │651 + const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name, port);│ │652 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ │653 │ │654 var arena = std.heap.ArenaAllocator.init(allocator); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────╮ │760 comptime repo_kind: rp.RepoKind, │ │761 comptime transport_def: net.TransportDefinition,│ │762 comptime shell_out_to_git: bool, │ │763 + comptime port: u16, │ │764 io: std.Io, │ │765 allocator: std.mem.Allocator, │ │766 ) !void { │ ╰─────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │778 defer temp_dir.close(io); │ │779 │ │780 // init server │ │778 - var server_process = try runServer(io, allocator, temp_dir_name); │ │781 + var server_process = try runServer(io, allocator, temp_dir_name, port);│ │782 defer _ = server_process.kill(io); │ │783 │ │784 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯