╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭──────────────────────────────────────────────────────────╮ │ 947 fn testFetchLarge( │ │ 948 comptime repo_kind: rp.RepoKind, │ │ 949 comptime transport_def: net.TransportDefinition,│ │1053 - comptime port: u16, │ │ 950 comptime shell_out_to_git: bool, │ │ 951 io: std.Io, │ │ 952 allocator: std.mem.Allocator, │ ╰──────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │ 965 defer temp_dir.close(io); │ │ 966 │ │ 967 // init server │ │1072 - var server = try Server(transport_def, temp_dir_name, port).init(io, allocator);│ │1073 - try server.start(); │ │1074 - defer server.stop(); │ │ 968 + var server_process = try runServer(io, allocator, temp_dir_name); │ │ 969 + defer _ = server_process.kill(io); │ │ 970 │ │ 971 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ │ 972 defer allocator.free(cwd_path); │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1023 //.file => try std.fmt.allocPrint(allocator, "file://{s}{s}", .{ separator, server_path }), │ │1024 .file => try std.fmt.allocPrint(allocator, "../server", .{}), // relative file paths work too │ │1025 .wire => |wire_kind| switch (wire_kind) { │ │1131 - .http => try std.fmt.allocPrint(allocator, "http://localhost:{}/server", .{port}), │ │1132 - .raw => try std.fmt.allocPrint(allocator, "git://localhost:{}/server", .{port}), │ │1133 - .ssh => try std.fmt.allocPrint(allocator, "ssh://localhost:{}{s}{s}", .{ port, separator, server_path }), │ │1026 + .http => try std.fmt.allocPrint(allocator, "http://localhost:{}/server", .{http_port}), │ │1027 + .raw => try std.fmt.allocPrint(allocator, "git://localhost:{}/server", .{http_port}), │ │1028 + .ssh => try std.fmt.allocPrint(allocator, "ssh://localhost:{}{s}{s}", .{ ssh_port, separator, server_path }),│ │1029 }, │ │1030 }; │ │1031 defer allocator.free(remote_url); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1039 .wire => |wire_kind| .ssh == wire_kind, │ │1040 }; │ │1041 │ │1147 - │ │1042 if (shell_out_to_git) { │ │1043 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" });│ │1044 defer allocator.free(priv_key_path); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │1122 "origin", │ │1123 .{ .refspecs = refspecs, .wire = .{ .ssh = .{│ │1124 .command = ssh_cmd_maybe, │ │1231 - } } }, │ │1125 + } } }, │ │1126 ); │ │1127 │ │1128 // update the working dir │ ╰───────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────╮ │1139 fn testPushLarge( │ │1140 comptime repo_kind: rp.RepoKind, │ │1141 comptime transport_def: net.TransportDefinition,│ │1248 - comptime port: u16, │ │1142 comptime shell_out_to_git: bool, │ │1143 io: std.Io, │ │1144 allocator: std.mem.Allocator, │ ╰──────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │1157 defer temp_dir.close(io); │ │1158 │ │1159 // init server │ │1267 - var server = try Server(transport_def, temp_dir_name, port).init(io, allocator);│ │1268 - try server.start(); │ │1269 - defer server.stop(); │ │1160 + var server_process = try runServer(io, allocator, temp_dir_name); │ │1161 + defer _ = server_process.kill(io); │ │1162 │ │1163 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ │1164 defer allocator.free(cwd_path); │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1252 //.file => try std.fmt.allocPrint(allocator, "file://{s}{s}", .{ separator, server_path }), │ │1253 .file => try std.fmt.allocPrint(allocator, "../server", .{}), // relative file paths work too │ │1254 .wire => |wire_kind| switch (wire_kind) { │ │1363 - .http => try std.fmt.allocPrint(allocator, "http://localhost:{}/server", .{port}), │ │1364 - .raw => try std.fmt.allocPrint(allocator, "git://localhost:{}/server", .{port}), │ │1365 - .ssh => try std.fmt.allocPrint(allocator, "ssh://localhost:{}{s}{s}", .{ port, separator, server_path }), │ │1255 + .http => try std.fmt.allocPrint(allocator, "http://localhost:{}/server", .{http_port}), │ │1256 + .raw => try std.fmt.allocPrint(allocator, "git://localhost:{}/server", .{http_port}), │ │1257 + .ssh => try std.fmt.allocPrint(allocator, "ssh://localhost:{}{s}{s}", .{ ssh_port, separator, server_path }),│ │1258 }, │ │1259 }; │ │1260 defer allocator.free(remote_url); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1267 .file => false, │ │1268 .wire => |wire_kind| .ssh == wire_kind, │ │1269 }; │ │1378 - │ │1270 │ │1271 if (shell_out_to_git) { │ │1272 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────╮ │1309 false, │ │1310 .{ .wire = .{ .ssh = .{ │ │1311 .command = ssh_cmd_maybe,│ │1421 - } } }, │ │1312 + } } }, │ │1313 ); │ │1314 │ │1315 if (transport_def == .file) { │ ╰───────────────────────────────────────────────╯