summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/utils_test.go')
-rw-r--r--dhcpv6/utils_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/utils_test.go b/dhcpv6/utils_test.go
index 77205b4..f3b53f0 100644
--- a/dhcpv6/utils_test.go
+++ b/dhcpv6/utils_test.go
@@ -12,7 +12,7 @@ func TestIsNetboot(t *testing.T) {
msg2 := DHCPv6Message{}
optro := OptRequestedOption{}
- optro.AddRequestedOption(OPT_BOOTFILE_URL)
+ optro.AddRequestedOption(OptionBootfileURL)
msg2.AddOption(&optro)
require.True(t, IsNetboot(&msg2))
@@ -61,7 +61,7 @@ func TestGetTransactionIDMessage(t *testing.T) {
func TestGetTransactionIDRelay(t *testing.T) {
message, err := NewMessage()
require.NoError(t, err)
- relay, err := EncapsulateRelay(message, RELAY_FORW, nil, nil)
+ relay, err := EncapsulateRelay(message, MessageTypeRelayForward, nil, nil)
require.NoError(t, err)
transactionID, err := GetTransactionID(relay)
require.NoError(t, err)