mirror of
https://github.com/soypat/lneto.git
synced 2026-09-10 08:39:30 +00:00
+3
-2
@@ -1,9 +1,10 @@
|
||||
package dhcpv4
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"net/netip"
|
||||
"testing"
|
||||
|
||||
"github.com/soypat/lneto/internal"
|
||||
)
|
||||
|
||||
func TestClientServer(t *testing.T) {
|
||||
@@ -516,7 +517,7 @@ func TestRequestedIPNotSentWhenInvalid(t *testing.T) {
|
||||
// it should be included. This test documents expected behavior.
|
||||
if foundRequestedIP {
|
||||
// Verify the value matches what was requested
|
||||
if !bytes.Equal(ipValue[:], []byte{0, 0, 0, 0}) {
|
||||
if !internal.BytesEqual(ipValue[:], []byte{0, 0, 0, 0}) {
|
||||
t.Errorf("unexpected requested IP value: %v", ipValue)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user