Skip to content

test: refactor container_list_linux_test.go to use Tigron#5058

Open
papidb wants to merge 1 commit into
containerd:mainfrom
papidb:test/refactor-container-list-linux-test-to-tigron
Open

test: refactor container_list_linux_test.go to use Tigron#5058
papidb wants to merge 1 commit into
containerd:mainfrom
papidb:test/refactor-container-list-linux-test-to-tigron

Conversation

@papidb

@papidb papidb commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Rewrite tests in container_list_linux_test.go from testutil.NewBase to nerdtest.Setup (Tigron framework). Part of #4613.

// CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES SIZE
// be8d386c991e docker.io/library/busybox:latest "top" 1 second ago Up c1 16.0 KiB (virtual 1.3 MiB)
testCase.Setup = func(data test.Data, helpers test.Helpers) {
setupPsTestContainer(data, helpers, "list", true)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove the extra lines and do formatting correctly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi, @sathiraumesh I've removed the extra lines and formatted well, please re-review.

return fmt.Errorf("expect container size %s, but got %s", expectedSize, size)
image, _ := tab.ReadRow(lines[1], "IMAGE")
assert.Equal(t, image, testutil.CommonImage)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

extra lines and there are in many places

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed

Signed-off-by: Daniel Benjamin <benjamindaniel706@gmail.com>
@papidb papidb force-pushed the test/refactor-container-list-linux-test-to-tigron branch from aeb2b2e to 33a1850 Compare July 10, 2026 14:45
@papidb papidb requested a review from sathiraumesh July 10, 2026 15:16
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.

2 participants