diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-07-31 17:12:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 17:12:40 +0100 |
commit | bcf643be1286495de75817fd1edf731ddbd2195a (patch) | |
tree | 945d12ed3d8a11ebc55dd2f8d6ee1304ecd2b20f /dhcpv6/dhcpv6_test.go | |
parent | c6894ea160d82b4a326ebab94faaebd090192a7b (diff) | |
parent | 7319b8f8a1a601b5e69c5bcaa33914c0f85b92e6 (diff) |
DHCPv6: Rename Option constants to CamelCase (#106)
Diffstat (limited to 'dhcpv6/dhcpv6_test.go')
-rw-r--r-- | dhcpv6/dhcpv6_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/dhcpv6_test.go b/dhcpv6/dhcpv6_test.go index 656c62f..4a44e0e 100644 --- a/dhcpv6/dhcpv6_test.go +++ b/dhcpv6/dhcpv6_test.go @@ -198,20 +198,20 @@ func TestNewMessageTypeSolicitWithCID(t *testing.T) { require.Equal(t, s.Type(), MessageTypeSolicit) // Check CID - cidOption := s.GetOneOption(OPTION_CLIENTID) + cidOption := s.GetOneOption(OptionClientID) require.NotNil(t, cidOption) cid, ok := cidOption.(*OptClientId) require.True(t, ok) require.Equal(t, cid.Cid, duid) // Check ORO - oroOption := s.GetOneOption(OPTION_ORO) + oroOption := s.GetOneOption(OptionORO) require.NotNil(t, oroOption) oro, ok := oroOption.(*OptRequestedOption) require.True(t, ok) opts := oro.RequestedOptions() - require.Contains(t, opts, DNS_RECURSIVE_NAME_SERVER) - require.Contains(t, opts, DOMAIN_SEARCH_LIST) + require.Contains(t, opts, OptionDNSRecursiveNameServer) + require.Contains(t, opts, OptionDomainSearchList) require.Equal(t, len(opts), 2) } |