[VOL-3285] Resolving statis code analysis warnings
Change-Id: Iaddaae92c649fd27ce0a63f1786af594667c9e8e
diff --git a/internal/bbsim/responders/dhcp/dhcp_test.go b/internal/bbsim/responders/dhcp/dhcp_test.go
index 03e40b7..ff9b943 100644
--- a/internal/bbsim/responders/dhcp/dhcp_test.go
+++ b/internal/bbsim/responders/dhcp/dhcp_test.go
@@ -18,12 +18,13 @@
import (
"errors"
+ "net"
+ "testing"
+
"github.com/looplab/fsm"
"github.com/opencord/voltha-protos/v2/go/openolt"
"google.golang.org/grpc"
"gotest.tools/assert"
- "net"
- "testing"
)
// MOCKS
@@ -104,15 +105,15 @@
var serialNumber string = "BBSM00000001"
dhcpStateMachine.SetState("dhcp_started")
- updateDhcpFailed(onuId, ponPortId, serialNumber, dhcpStateMachine)
+ _ = updateDhcpFailed(onuId, ponPortId, serialNumber, dhcpStateMachine)
assert.Equal(t, dhcpStateMachine.Current(), "dhcp_failed")
dhcpStateMachine.SetState("dhcp_discovery_sent")
- updateDhcpFailed(onuId, ponPortId, serialNumber, dhcpStateMachine)
+ _ = updateDhcpFailed(onuId, ponPortId, serialNumber, dhcpStateMachine)
assert.Equal(t, dhcpStateMachine.Current(), "dhcp_failed")
dhcpStateMachine.SetState("dhcp_request_sent")
- updateDhcpFailed(onuId, ponPortId, serialNumber, dhcpStateMachine)
+ _ = updateDhcpFailed(onuId, ponPortId, serialNumber, dhcpStateMachine)
assert.Equal(t, dhcpStateMachine.Current(), "dhcp_failed")
dhcpStateMachine.SetState("dhcp_ack_received")