summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6_test.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2019-05-08 09:45:23 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2019-05-08 11:13:30 +0100
commitc781bfa866afb5cac93f2fcbb5ef9da53a486087 (patch)
tree8a238ffd60198cd2e5639e4a95ddbdb9068d3f3f /dhcpv6/dhcpv6_test.go
parent2ecf202a098f82731efe88ed625a463913309124 (diff)
Addressed various linter warnings
Mostly for dead code and potentially wrong comparisons. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'dhcpv6/dhcpv6_test.go')
-rw-r--r--dhcpv6/dhcpv6_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/dhcpv6_test.go b/dhcpv6/dhcpv6_test.go
index 5de2294..fbf7761 100644
--- a/dhcpv6/dhcpv6_test.go
+++ b/dhcpv6/dhcpv6_test.go
@@ -193,12 +193,12 @@ func TestNewReplyFromMessage(t *testing.T) {
require.Equal(t, rep.Type(), MessageTypeReply)
msg.MessageType = MessageTypeSolicit
- rep, err = NewReplyFromMessage(&msg)
+ _, err = NewReplyFromMessage(&msg)
require.Error(t, err)
msg.MessageType = MessageTypeSolicit
msg.AddOption(&OptionGeneric{OptionCode: OptionRapidCommit})
- rep, err = NewReplyFromMessage(&msg)
+ _, err = NewReplyFromMessage(&msg)
require.NoError(t, err)
msg.Options.Del(OptionRapidCommit)
}