Skip to content

Commit

Permalink
tests: Fix argument order in assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreprinetti committed Oct 22, 2024
1 parent 458758e commit 2e9efd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upup/pkg/fi/cloudup/openstack/instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func Test_WaitForStatusActiveResultsInInstanceNotFound(t *testing.T) {
actualErr := waitForStatusActive(c, wrongServerID, nil)

expectedErr := fmt.Errorf("Server with ID '%s' not found.", wrongServerID)
assertTestResults(t, nil, actualErr, expectedErr)
assertTestResults(t, nil, expectedErr, actualErr)
}

func Test_WaitForStatusActiveResultsInUnableToCreateServer(t *testing.T) {
Expand All @@ -75,7 +75,7 @@ func Test_WaitForStatusActiveResultsInUnableToCreateServer(t *testing.T) {
actualErr := waitForStatusActive(c, serverID, nil)

expectedErr := fmt.Errorf("unable to create server: {0 0001-01-01 00:00:00 +0000 UTC }")
assertTestResults(t, nil, actualErr, expectedErr)
assertTestResults(t, nil, expectedErr, actualErr)
}

func Test_WaitForStatusActiveResultsInTimeout(t *testing.T) {
Expand All @@ -85,5 +85,5 @@ func Test_WaitForStatusActiveResultsInTimeout(t *testing.T) {
actualErr := waitForStatusActive(c, serverID, fi.PtrTo(time.Second))

expectedErr := fmt.Errorf("A timeout occurred")
assertTestResults(t, nil, actualErr, expectedErr)
assertTestResults(t, nil, expectedErr, actualErr)
}

0 comments on commit 2e9efd3

Please sign in to comment.