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

Cgroup2: Testify all tests #285

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

dcantah
Copy link
Member

@dcantah dcantah commented Apr 11, 2023

Use require/assert for all the cgroup2 tests. These tests were in a weird spot where some of them used a mix of testify.assert, and some used testify.require in place of if err != nil { t.Fatal() }. This just moves everything over to require.NoError and friends.

cgroup2/manager_test.go Outdated Show resolved Hide resolved
Use require/assert for all the cgroup2 tests. These tests were in a
weird spot where some of them used a mix of testify.assert, and some
used `testify.require` in place of `if err != nil { t.Fatal() }`. This
just moves everything over to `require.NoError` and friends.

Signed-off-by: Danny Canter <danny@dcantah.dev>
@AkihiroSuda AkihiroSuda merged commit 0218f40 into containerd:main Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants