summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_nii_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_nii_test.go
parentda69dad309583925ff4f8d0454bd0fb5bb6a1402 (diff)
dhcpv6: remove unnecessary Length function
Diffstat (limited to 'dhcpv6/option_nii_test.go')
-rw-r--r--dhcpv6/option_nii_test.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/dhcpv6/option_nii_test.go b/dhcpv6/option_nii_test.go
index ba9ed19..a355122 100644
--- a/dhcpv6/option_nii_test.go
+++ b/dhcpv6/option_nii_test.go
@@ -14,7 +14,6 @@ func TestOptNetworkInterfaceIdParse(t *testing.T) {
}
opt, err := ParseOptNetworkInterfaceId(expected)
require.NoError(t, err, "ParseOptNetworkInterfaceId() should not return an error with correct bytes")
- require.Equal(t, 3, opt.Length(), "Length() should return 3")
require.Equal(t, OptionNII, opt.Code(), OptionNII, "Code() should return 62 for OptNetworkInterfaceId")
require.Equal(t, uint8(1), opt.Type(), "Type() should return 1 for UNDI")
require.Equal(t, uint8(3), opt.Major(), "Major() should return 1 for UNDI")
@@ -36,8 +35,6 @@ func TestOptNetworkInterfaceIdToBytes(t *testing.T) {
func TestOptNetworkInterfaceIdTooShort(t *testing.T) {
buf := []byte{
- 0, 62, // OptNetworkInterfaceId
- 0, 3, // length
1, // type (UNDI)
// missing major/minor revision bytes
}