Skip to content

Commit

Permalink
Resolving lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitap26 committed Sep 17, 2024
1 parent b5eef3c commit efd6b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/step_defs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3145,11 +3145,11 @@ func (f *feature) theConfigMapIsUpdated() error {
}

// Mocking the GetIPAddressByInterface function
GetIPAddressByInterface := func(interfaceName string, networkInterface NetworkInterface) (string, error) {
GetIPAddressByInterface := func(string, NetworkInterface) (string, error) {
return "10.0.0.1", nil
}
if stepHandlersErrors.GetIPAddressByInterfaceError {
GetIPAddressByInterface = func(interfaceName string, networkInterface NetworkInterface) (string, error) {
GetIPAddressByInterface = func(string, NetworkInterface) (string, error) {
return "", fmt.Errorf("error geting the IP address of the interface")
}
}
Expand Down

0 comments on commit efd6b39

Please sign in to comment.