Skip to content

Commit

Permalink
repair test to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichSchreiner committed Feb 29, 2024
1 parent bae5b4b commit b559143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/metal-api/internal/service/switch-service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ func TestToggleSwitchWrongNic(t *testing.T) {
err = json.NewDecoder(resp.Body).Decode(&result)

require.NoError(t, err)
require.Equal(t, result.Message, "the nic \"wrongname\" does not exist in this switch")
require.Equal(t, "the nic \"wrongname\" does not exist in this switch", result.Message)
}

func TestToggleSwitchWrongState(t *testing.T) {
Expand Down Expand Up @@ -1383,5 +1383,5 @@ func TestToggleSwitch(t *testing.T) {
require.NoError(t, err)
require.Equal(t, testdata.Switch1.ID, result.ID)
require.Equal(t, testdata.Switch1.Name, *result.Name)
require.Equal(t, result.Nics[0].Actual, v1.SwitchPortStatusUnknown)
require.Equal(t, v1.SwitchPortStatusUnknown, result.Nics[0].Actual)
}

0 comments on commit b559143

Please sign in to comment.