╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │833 defer allocator.free(client_path); │ │834 │ │835 // get remote url │ │833 - const remote_url = try remoteUrl(transport_def, allocator, "testrepo"); │ │836 + const remote_url = try remoteUrl(transport_def, allocator, "testrepo", port);│ │837 defer allocator.free(remote_url); │ │838 │ │839 const is_ssh = switch (transport_def) { │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │844 if (shell_out_to_git) { │ │845 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" }); │ │846 defer allocator.free(priv_key_path); │ │844 - const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand=ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile={s}", .{ ssh_port, priv_key_path });│ │847 + const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand=ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile={s}", .{ port + 1, priv_key_path });│ │848 defer allocator.free(ssh_config_arg); │ │849 │ │850 { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1007 goodbye_txt.close(io); │ │1008 } │ │1009 } else { │ │1007 - const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name); │ │1010 + const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name, port);│ │1011 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ │1012 │ │1013 // clone repo │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────╮ │1039 comptime repo_kind: rp.RepoKind, │ │1040 comptime transport_def: net.TransportDefinition,│ │1041 comptime shell_out_to_git: bool, │ │1042 + comptime port: u16, │ │1043 io: std.Io, │ │1044 allocator: std.mem.Allocator, │ │1045 ) !void { │ ╰──────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │1057 defer temp_dir.close(io); │ │1058 │ │1059 // init server │ │1056 - var server_process = try runServer(io, allocator, temp_dir_name); │ │1060 + var server_process = try runServer(io, allocator, temp_dir_name, port);│ │1061 defer _ = server_process.kill(io); │ │1062 │ │1063 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │1107 │ │1108 // add remote │ │1109 { │ │1106 - const remote_url = try remoteUrl(transport_def, allocator, "testrepo"); │ │1110 + const remote_url = try remoteUrl(transport_def, allocator, "testrepo", port); │ │1111 defer allocator.free(remote_url); │ │1112 │ │1113 try client_repo.addRemote(io, allocator, .{ .name = "origin", .value = remote_url });│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1122 if (shell_out_to_git) { │ │1123 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" }); │ │1124 defer allocator.free(priv_key_path); │ │1121 - const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand=ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile={s}", .{ ssh_port, priv_key_path });│ │1125 + const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand=ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile={s}", .{ port + 1, priv_key_path });│ │1126 defer allocator.free(ssh_config_arg); │ │1127 │ │1128 { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1185 "+refs/heads/master:refs/heads/master", │ │1186 }; │ │1187 │ │1184 - const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name); │ │1188 + const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, cwd_path, temp_dir_name, port);│ │1189 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ │1190 │ │1191 try client_repo.fetch( │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────╮ │1212 comptime repo_kind: rp.RepoKind, │ │1213 comptime transport_def: net.TransportDefinition,│ │1214 comptime shell_out_to_git: bool, │ │1215 + comptime port: u16, │ │1216 io: std.Io, │ │1217 allocator: std.mem.Allocator, │ │1218 ) !void { │ ╰──────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │1230 defer temp_dir.close(io); │ │1231 │ │1232 // init server │ │1228 - var server_process = try runServer(io, allocator, temp_dir_name); │ │1233 + var server_process = try runServer(io, allocator, temp_dir_name, port);│ │1234 defer _ = server_process.kill(io); │ │1235 │ │1236 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯