Skip to content

Commit

Permalink
packet: fix test on big endian
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Layher <[email protected]>
  • Loading branch information
mdlayher committed Dec 22, 2022
1 parent 10c98cb commit 153f88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packet_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Test_htons(t *testing.T) {

// Depending on our GOARCH, the result may be big or little endian.
var want uint16
if native.Endian == binary.LittleEndian {
if native.Endian == binary.ByteOrder(binary.LittleEndian) {
want = tt.vLE
} else {
want = tt.vBE
Expand Down

0 comments on commit 153f88b

Please sign in to comment.