Skip to content

Commit

Permalink
ci: use go1.23, drop go1.21 (#2933)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Aug 30, 2024
1 parent 6db97c3 commit 9e55a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
go-test:
uses: ./.github/workflows/go-test-template.yml
with:
go-versions: '["1.21.x", "1.22.x"]'
go-versions: '["1.22.x", "1.23.x"]'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion p2p/net/nat/nat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ func TestAddMapping(t *testing.T) {
require.False(t, found, "didn't expect a port mapping for unmapped protocol")
mapped, found := nat.GetMapping("tcp", 10000)
require.True(t, found, "expected port mapping")
require.Equal(t, netip.AddrPortFrom(netip.AddrFrom4([4]byte{1, 2, 3, 4}), 1234), mapped)
addr, _ := netip.AddrFromSlice(net.IPv4(1, 2, 3, 4))
require.Equal(t, netip.AddrPortFrom(addr, 1234), mapped)
}

func TestRemoveMapping(t *testing.T) {
Expand Down

0 comments on commit 9e55a48

Please sign in to comment.