Skip to content

Commit f535990

Browse files
authored
ci: use go1.23, drop go1.21 (#2933)
1 parent c31e21d commit f535990

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
go-test:
1818
uses: ./.github/workflows/go-test-template.yml
1919
with:
20-
go-versions: '["1.21.x", "1.22.x"]'
20+
go-versions: '["1.22.x", "1.23.x"]'
2121
secrets:
2222
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

p2p/net/nat/nat_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ func TestAddMapping(t *testing.T) {
4545
require.False(t, found, "didn't expect a port mapping for unmapped protocol")
4646
mapped, found := nat.GetMapping("tcp", 10000)
4747
require.True(t, found, "expected port mapping")
48-
require.Equal(t, netip.AddrPortFrom(netip.AddrFrom4([4]byte{1, 2, 3, 4}), 1234), mapped)
48+
addr, _ := netip.AddrFromSlice(net.IPv4(1, 2, 3, 4))
49+
require.Equal(t, netip.AddrPortFrom(addr, 1234), mapped)
4950
}
5051

5152
func TestRemoveMapping(t *testing.T) {

0 commit comments

Comments
 (0)