summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_iaprefix_test.go
diff options
context:
space:
mode:
authorChristopher Koch <c@chrisko.ch>2019-01-20 20:28:24 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-26 23:34:26 +0000
commit64f29461718b0dac77d8156ceceacce086fe14b2 (patch)
tree17146477afbf8da8e0e0535a330ffd18dbb93a3c /dhcpv6/option_iaprefix_test.go
parentda69dad309583925ff4f8d0454bd0fb5bb6a1402 (diff)
dhcpv6: remove unnecessary Length function
Diffstat (limited to 'dhcpv6/option_iaprefix_test.go')
-rw-r--r--dhcpv6/option_iaprefix_test.go3
1 files changed, 0 insertions, 3 deletions
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) {