summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_domain_name_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_domain_name_test.go')
-rw-r--r--dhcpv4/option_domain_name_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_domain_name_test.go b/dhcpv4/option_domain_name_test.go
index e88d87e..473e28d 100644
--- a/dhcpv4/option_domain_name_test.go
+++ b/dhcpv4/option_domain_name_test.go
@@ -10,7 +10,7 @@ func TestOptDomainNameInterfaceMethods(t *testing.T) {
o := OptDomainName{DomainName: "foo"}
require.Equal(t, OptionDomainName, o.Code(), "Code")
require.Equal(t, 3, o.Length(), "Length")
- require.Equal(t, []byte{byte(OptionDomainName), 3, 'f', 'o', 'o'}, o.ToBytes(), "ToBytes")
+ require.Equal(t, []byte{'f', 'o', 'o'}, o.ToBytes(), "ToBytes")
}
func TestParseOptDomainName(t *testing.T) {