summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/modifiers_test.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-08-11 14:30:48 -0700
committerSean Karlage <skarlage@fb.com>2018-08-11 14:32:26 -0700
commit8ea2525c898436a2a935580de67727bbe7035c85 (patch)
tree69d35d17c238feabb07ef07a907aae5520104911 /dhcpv6/modifiers_test.go
parent2b05c7d03724d31529886d98f738499ac06ead7e (diff)
parenta6212f1f72e94821a29894fb66656a981bd035d0 (diff)
Merge branch 'master' into dhcpv4-moar-tests
Diffstat (limited to 'dhcpv6/modifiers_test.go')
-rw-r--r--dhcpv6/modifiers_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/modifiers_test.go b/dhcpv6/modifiers_test.go
index da1ef56..ab21367 100644
--- a/dhcpv6/modifiers_test.go
+++ b/dhcpv6/modifiers_test.go
@@ -16,7 +16,7 @@ func TestWithClientID(t *testing.T) {
}
m, err := NewMessage(WithClientID(duid))
require.NoError(t, err)
- opt := m.GetOneOption(OPTION_CLIENTID)
+ opt := m.GetOneOption(OptionClientID)
require.NotNil(t, opt)
cid := opt.(*OptClientId)
require.Equal(t, cid.Cid, duid)
@@ -30,7 +30,7 @@ func TestWithServerID(t *testing.T) {
}
m, err := NewMessage(WithServerID(duid))
require.NoError(t, err)
- opt := m.GetOneOption(OPTION_SERVERID)
+ opt := m.GetOneOption(OptionServerID)
require.NotNil(t, opt)
sid := opt.(*OptServerId)
require.Equal(t, sid.Sid, duid)