diff options
author | Chris Koch <chrisko@google.com> | 2019-12-28 01:20:55 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2020-03-05 15:51:55 +0000 |
commit | fc0886ce943f6f84775882b2147782a4ec26fb1f (patch) | |
tree | 0f9dd70ba4940e14260132bf5500cb8a35c5a375 /dhcpv6/dhcpv6_test.go | |
parent | 189a90f002f4cb2b44e4a54f36ff9f57c53ec9d9 (diff) |
v6: add IANA Getter
Signed-off-by: Chris Koch <chrisko@google.com>
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) { |