diff options
Diffstat (limited to 'dhcpv6/dhcpv6_test.go')
-rw-r--r-- | dhcpv6/dhcpv6_test.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dhcpv6/dhcpv6_test.go b/dhcpv6/dhcpv6_test.go index dad07f6..d975308 100644 --- a/dhcpv6/dhcpv6_test.go +++ b/dhcpv6/dhcpv6_test.go @@ -253,11 +253,9 @@ func TestNewMessageTypeSolicit(t *testing.T) { // Check IA_NA iaid := [4]byte{hwAddr[2], hwAddr[3], hwAddr[4], hwAddr[5]} - iaNaOption := s.GetOneOption(OptionIANA) - require.NotNil(t, iaNaOption) - iaNa, ok := iaNaOption.(*OptIANA) - require.True(t, ok) - require.Equal(t, iaid, iaNa.IaId) + iana := s.Options.OneIANA() + require.NotNil(t, iana) + require.Equal(t, iaid, iana.IaId) } func TestIsUsingUEFIArchTypeTrue(t *testing.T) { |