Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use t.Cleanup instead of defer #402

Merged
merged 7 commits into from
Nov 9, 2022

Conversation

eddycharly
Copy link
Contributor

What this PR does / why we need it:

This PR makes use t.Cleanup instead of defer.

pkg/test/case.go Outdated Show resolved Hide resolved
pkg/test/case.go Outdated Show resolved Hide resolved
pkg/test/case.go Outdated Show resolved Hide resolved
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally like the changes... additional changes in case_integration_test.go required to make it compilable and runnable. Otherwise I think we are good to go

pkg/test/case_integration_test.go Outdated Show resolved Hide resolved
pkg/test/case_integration_test.go Outdated Show resolved Hide resolved
eddycharly and others added 7 commits November 9, 2022 13:57
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@kensipe kensipe merged commit 3a44c1b into kudobuilder:main Nov 9, 2022
iblancasa pushed a commit to iblancasa/kuttl that referenced this pull request Nov 17, 2022
Using `testing.T.Cleanup` instead of `defer` where appropriate

Co-authored-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants