Skip to content

test: refactor container_update_linux_test.go to use Tigron#4711

Merged
ChengyuZhu6 merged 1 commit intocontainerd:mainfrom
JoonsooWon:issues_4613_container_update_linux_test.go
Jan 21, 2026
Merged

test: refactor container_update_linux_test.go to use Tigron#4711
ChengyuZhu6 merged 1 commit intocontainerd:mainfrom
JoonsooWon:issues_4613_container_update_linux_test.go

Conversation

@JoonsooWon
Copy link
Contributor

related: #4613

@haytok haytok added this to the v2.3.0 milestone Jan 20, 2026
testCase.Setup = func(data test.Data, helpers test.Helpers) {
containerName := testutil.Identifier(t)
data.Labels().Set("containerName", containerName)
helpers.Ensure("run", "-d", "--name", containerName, testutil.CommonImage, "sleep", "infinity")
Copy link
Member

Choose a reason for hiding this comment

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

NIT:

It's better to use nerdtest.Infinity instead of infinity.

https://github.com/containerd/nerdctl/blob/main/pkg/testutil/nerdtest/utilities.go#L40-L44

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review!
I've fixed it.

Signed-off-by: Joonsoo Won <wonjs0116@gmail.com>
@JoonsooWon JoonsooWon force-pushed the issues_4613_container_update_linux_test.go branch from 711da1b to 3fa39ae Compare January 20, 2026 14:52
Copy link
Member

@haytok haytok left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

Copy link
Member

@ChengyuZhu6 ChengyuZhu6 left a comment

Choose a reason for hiding this comment

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

LGTM

@ChengyuZhu6 ChengyuZhu6 merged commit a630881 into containerd:main Jan 21, 2026
75 of 80 checks passed
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.

3 participants