Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Zhonghu Xu <[email protected]>
  • Loading branch information
hzxuzhonghu committed Apr 22, 2024
1 parent fb63a31 commit a361693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nets/nets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
func Test_ConvertIpToUint32(t *testing.T) {
ip := "192.168.0.1"
val := ConvertIpToUint32(ip)
assert.Equal(t, 0x100a8c0, val)
assert.Equal(t, uint32(0x100a8c0), val)

// It can not panic even for invalid ip
val = ConvertIpToUint32("a.b.c.d")
Expand Down

0 comments on commit a361693

Please sign in to comment.