╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │13 test "fetch small" { │ │14 const io = std.testing.io; │ │15 const allocator = std.testing.allocator; │ │16 - try testFetch(.xit, .{ .wire = .http }, 3000, io, allocator); │ │16 + try testFetch(.xit, .{ .wire = .http }, .sha1, 3001, io, allocator); │ │17 + try testFetch(.xit, .{ .wire = .http }, .sha256, 3003, io, allocator); │ │18 if (.windows != builtin.os.tag) { │ │18 - try testFetch(.xit, .{ .wire = .ssh }, 3002, io, allocator); │ │19 + try testFetch(.xit, .{ .wire = .ssh }, .sha1, 3005, io, allocator); │ │20 + try testFetch(.xit, .{ .wire = .ssh }, .sha256, 3007, io, allocator);│ │21 } │ │22 } │ │23 │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │25 const io = std.testing.io; │ │26 const allocator = std.testing.allocator; │ │27 if (.windows != builtin.os.tag) { │ │26 - try testPush(.xit, .{ .wire = .ssh }, 3004, io, allocator); │ │28 + try testPush(.xit, .{ .wire = .ssh }, .sha1, 3101, io, allocator); │ │29 + try testPush(.xit, .{ .wire = .ssh }, .sha256, 3103, io, allocator);│ │30 } │ │31 } │ │32 │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │34 const io = std.testing.io; │ │35 const allocator = std.testing.allocator; │ │36 if (.windows != builtin.os.tag) { │ │34 - try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, 3006, io, allocator);│ │37 + // the server creates missing repositories as sha1 │ │38 + try testPushCreatesMissingRepo(.xit, .{ .wire = .ssh }, 3201, io, allocator);│ │39 } │ │40 } │ │41 │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │43 const io = std.testing.io; │ │44 const allocator = std.testing.allocator; │ │45 if (.windows != builtin.os.tag) { │ │42 - try testPushEvents(.xit, .{ .wire = .ssh }, 3008, io, allocator); │ │46 + try testPushEvents(.xit, .{ .wire = .ssh }, .sha1, 3301, io, allocator); │ │47 + try testPushEvents(.xit, .{ .wire = .ssh }, .sha256, 3303, io, allocator);│ │48 } │ │49 } │ │50 │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │51 test "clone small" { │ │52 const io = std.testing.io; │ │53 const allocator = std.testing.allocator; │ │49 - try testClone(.xit, .{ .wire = .http }, false, 3010, io, allocator); │ │54 + try testClone(.xit, .{ .wire = .http }, false, .sha1, 3401, io, allocator); │ │55 + try testClone(.xit, .{ .wire = .http }, false, .sha256, 3403, io, allocator); │ │56 if (.windows != builtin.os.tag) { │ │51 - try testClone(.xit, .{ .wire = .ssh }, false, 3012, io, allocator); │ │57 + try testClone(.xit, .{ .wire = .ssh }, false, .sha1, 3405, io, allocator); │ │58 + try testClone(.xit, .{ .wire = .ssh }, false, .sha256, 3407, io, allocator);│ │59 } │ │60 } │ │61 │ ╰────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │62 test "clone small subprocess" { │ │63 const io = std.testing.io; │ │64 const allocator = std.testing.allocator; │ │58 - try testClone(.git, .{ .wire = .http }, true, 3014, io, allocator); │ │65 + try testClone(.git, .{ .wire = .http }, true, .sha1, 3501, io, allocator); │ │66 + try testClone(.git, .{ .wire = .http }, true, .sha256, 3503, io, allocator); │ │67 if (.windows != builtin.os.tag) { │ │60 - try testClone(.git, .{ .wire = .ssh }, true, 3016, io, allocator); │ │68 + try testClone(.git, .{ .wire = .ssh }, true, .sha1, 3505, io, allocator); │ │69 + try testClone(.git, .{ .wire = .ssh }, true, .sha256, 3507, io, allocator);│ │70 } │ │71 } │ │72 │ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │73 test "fetch large subprocess" { │ │74 const io = std.testing.io; │ │75 const allocator = std.testing.allocator; │ │67 - try testFetchLarge(.git, .{ .wire = .http }, true, 3018, io, allocator); │ │76 + try testFetchLarge(.git, .{ .wire = .http }, true, .sha1, 3601, io, allocator); │ │77 + try testFetchLarge(.git, .{ .wire = .http }, true, .sha256, 3603, io, allocator); │ │78 if (.windows != builtin.os.tag) { │ │69 - try testFetchLarge(.git, .{ .wire = .ssh }, true, 3020, io, allocator); │ │79 + try testFetchLarge(.git, .{ .wire = .ssh }, true, .sha1, 3605, io, allocator); │ │80 + try testFetchLarge(.git, .{ .wire = .ssh }, true, .sha256, 3607, io, allocator);│ │81 } │ │82 } │ │83 │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │85 const io = std.testing.io; │ │86 const allocator = std.testing.allocator; │ │87 if (.windows != builtin.os.tag) { │ │77 - try testPushLarge(.git, .{ .wire = .ssh }, true, 3022, io, allocator); │ │88 + try testPushLarge(.git, .{ .wire = .ssh }, true, .sha1, 3701, io, allocator); │ │89 + try testPushLarge(.git, .{ .wire = .ssh }, true, .sha256, 3703, io, allocator);│ │90 } │ │91 } │ │92 │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │ 94 const io = std.testing.io; │ │ 95 const allocator = std.testing.allocator; │ │ 96 if (.windows != builtin.os.tag) { │ │ 85 - try testPushFork(3024, io, allocator); │ │ 97 + try testPushFork(.sha1, 3801, io, allocator); │ │ 98 + try testPushFork(.sha256, 3803, io, allocator);│ │ 99 } │ │100 } │ │101 │ ╰────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────╮ │160 fn testFetch( │ │161 comptime repo_kind: rp.RepoKind, │ │162 comptime transport_def: net.TransportDefinition,│ │163 + comptime hash_kind: hash.HashKind, │ │164 comptime port: u16, │ │165 io: std.Io, │ │166 allocator: std.mem.Allocator, │ ╰─────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯