From 64f29461718b0dac77d8156ceceacce086fe14b2 Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Sun, 20 Jan 2019 20:28:24 +0000 Subject: dhcpv6: remove unnecessary Length function --- dhcpv6/option_iaprefix_test.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'dhcpv6/option_iaprefix_test.go') diff --git a/dhcpv6/option_iaprefix_test.go b/dhcpv6/option_iaprefix_test.go index 48b410d..e48594d 100644 --- a/dhcpv6/option_iaprefix_test.go +++ b/dhcpv6/option_iaprefix_test.go @@ -32,9 +32,6 @@ func TestOptIAPrefix(t *testing.T) { if ip := opt.IPv6Prefix(); !bytes.Equal(ip, net.IPv6loopback) { t.Fatalf("Invalid Prefix Length. Expected %v, got %v", net.IPv6loopback, ip) } - if opt.Length() != len(buf) { - t.Fatalf("Invalid Option Length. Expected %v, got %v", len(buf), opt.Length()) - } } func TestOptIAPrefixToBytes(t *testing.T) { -- cgit v1.2.3