Skip to content

Commit cf3d350

Browse files
authored
fix: lint fix
Signed-off-by: GitHub <[email protected]>
1 parent 77fb0a9 commit cf3d350

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

network/secondary_endpoint_linux_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ import (
1717
"github.com/stretchr/testify/require"
1818
)
1919

20+
var errMockDHCPFailure = errors.New("failed to send dhcp discover packet")
21+
2022
// mockDHCPFail is a failing DHCP client mock for testing error scenarios
2123
type mockDHCPFail struct{}
2224

2325
func (netns *mockDHCPFail) DiscoverRequest(context.Context, net.HardwareAddr, string) error {
24-
return errors.New("failed to send dhcp discover packet")
26+
return errMockDHCPFailure
2527
}
2628

2729
func TestSecondaryAddEndpoints(t *testing.T) {

0 commit comments

Comments
 (0)