summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/modifiers_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/modifiers_test.go')
-rw-r--r--dhcpv6/modifiers_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/dhcpv6/modifiers_test.go b/dhcpv6/modifiers_test.go
index ff3a87a..d904ca1 100644
--- a/dhcpv6/modifiers_test.go
+++ b/dhcpv6/modifiers_test.go
@@ -29,10 +29,8 @@ func TestWithServerID(t *testing.T) {
}
m, err := NewMessage(WithServerID(duid))
require.NoError(t, err)
- opt := m.GetOneOption(OptionServerID)
- require.NotNil(t, opt)
- sid := opt.(*OptServerId)
- require.Equal(t, sid.Sid, duid)
+ sid := m.Options.ServerID()
+ require.Equal(t, sid, &duid)
}
func TestWithRequestedOptions(t *testing.T) {