diff --git a/service/step_defs_test.go b/service/step_defs_test.go index 90000088..52c52b70 100644 --- a/service/step_defs_test.go +++ b/service/step_defs_test.go @@ -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") } }