Skip to content

compute: Fix expected and actual test results#3197

Merged
EmilienM merged 1 commit intogophercloud:masterfrom
shiftstack:expected_actual
Oct 4, 2024
Merged

compute: Fix expected and actual test results#3197
EmilienM merged 1 commit intogophercloud:masterfrom
shiftstack:expected_actual

Conversation

@pierreprinetti
Copy link
Copy Markdown
Member

Our test convenience function AssertEquals accept the expected value first, then the actual value. Many tests in Compute were using it the other way around, thus potentially returning confusing error messages.

func AssertEquals(t *testing.T, expected, actual any) {

Our test convenience function `AssertEquals` accept the expected value
first, then the actual value. Many tests in Compute were using it the
other way around, thus potentially returning confusing error messages.
@pierreprinetti pierreprinetti requested a review from a team October 4, 2024 10:11
@github-actions github-actions bot added edit:compute This PR updates compute code semver:patch No API change labels Oct 4, 2024
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 78.726%. remained the same
when pulling a814c3b on shiftstack:expected_actual
into abca462 on gophercloud:master.

@EmilienM EmilienM merged commit 2168c96 into gophercloud:master Oct 4, 2024
@EmilienM EmilienM deleted the expected_actual branch October 4, 2024 13:02
@pierreprinetti pierreprinetti added the backport-v2 This PR will be backported to v2 label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:compute This PR updates compute code semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants