╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │29 test "push creates missing repo under serve" { │ │30 const io = std.testing.io; │ │31 const allocator = std.testing.allocator; │ │32 - // the server creates missing repositories as sha1 │ │33 - try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, 3201, io, allocator); │ │32 + try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, .sha1, 3201, io, allocator); │ │33 + try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, .sha256, 3203, io, allocator);│ │34 } │ │35 │ │36 test "push events" { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────╮ │855 fn testPushCreatesMissingRepo( │ │856 comptime repo_kind: rp.RepoKind, │ │857 comptime transport_def: net.TransportDefinition,│ │858 + comptime hash_kind: hash.HashKind, │ │859 comptime port: u16, │ │860 io: std.Io, │ │861 allocator: std.mem.Allocator, │ ╰─────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │871 const client_path = try std.fs.path.join(allocator, &.{ temp_path, "client" }); │ │872 defer allocator.free(client_path); │ │873 │ │873 - var client_repo = try rp.Repo(repo_kind, .{ .is_test = true }).init(io, allocator, .{ .path = client_path }); │ │874 + var client_repo = try rp.Repo(repo_kind, .{ .is_test = true, .hash = hash_kind }).init(io, allocator, .{ .path = client_path });│ │875 defer client_repo.deinit(io, allocator); │ │876 │ │877 const commit1 = blk: { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │912 } } }, │ │913 ); │ │914 │ │914 - // the push registered admin:server; resolve its on-disk directory │ │915 + // the push registered admin:testrepo in the client's hash format; resolve its on-disk directory│ │916 const server_path = (try repoOnDiskPath(io, allocator, temp_path, "testrepo", false)).?; │ │917 defer allocator.free(server_path); │ │918 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │918 - var server_repo = try rp.Repo(.xit, .{ .is_test = true }).open(io, allocator, .{ .path = server_path }); │ │919 + var server_repo = try rp.Repo(.xit, .{ .is_test = true, .hash = hash_kind }).open(io, allocator, .{ .path = server_path });│ │920 defer server_repo.deinit(io, allocator); │ │921 try std.testing.expect(try server_repo.isBare(io, allocator)); │ │922 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯