diff options
Diffstat (limited to 'dhcpv4/option_domain_search_test.go')
-rw-r--r-- | dhcpv4/option_domain_search_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_domain_search_test.go b/dhcpv4/option_domain_search_test.go index 590ccd0..0e5f8e9 100644 --- a/dhcpv4/option_domain_search_test.go +++ b/dhcpv4/option_domain_search_test.go @@ -14,7 +14,7 @@ func TestParseOptDomainSearch(t *testing.T) { 7, 'e', 'x', 'a', 'm', 'p', 'l', 'e', 3, 'c', 'o', 'm', 0, 6, 's', 'u', 'b', 'n', 'e', 't', 7, 'e', 'x', 'a', 'm', 'p', 'l', 'e', 3, 'o', 'r', 'g', 0, } - opt, err := ParseOptDomainSearch(data) + opt, err := ParseOptDomainSearch(data[2:]) require.NoError(t, err) require.Equal(t, 2, len(opt.DomainSearch.Labels)) require.Equal(t, data[2:], opt.DomainSearch.ToBytes()) |