Skip to content

refactor container_list_windows_test.go to use Tigron#4780

Open
must108 wants to merge 4 commits intocontainerd:mainfrom
must108:containers-list-windows-test
Open

refactor container_list_windows_test.go to use Tigron#4780
must108 wants to merge 4 commits intocontainerd:mainfrom
must108:containers-list-windows-test

Conversation

@must108
Copy link
Copy Markdown
Contributor

@must108 must108 commented Mar 7, 2026

Tests now use nerdtest.Setup, and Tigron

ResolvesUpdates (EDIT: @AkihiroSuda) #4613

must108 added 2 commits March 7, 2026 00:16
Signed-off-by: Mustaeen Ahmed <contact@mustaeen.dev>
Signed-off-by: Mustaeen Ahmed <contact@mustaeen.dev>
@must108
Copy link
Copy Markdown
Contributor Author

must108 commented Mar 15, 2026

@AkihiroSuda

Copy link
Copy Markdown
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.

Comment thread cmd/nerdctl/container/container_list_windows_test.go Outdated
Comment thread cmd/nerdctl/container/container_list_windows_test.go Outdated
Comment thread cmd/nerdctl/container/container_list_windows_test.go Outdated
Signed-off-by: must108 <mustaeen18@gmail.com>
@must108 must108 requested review from haytok and sathiraumesh April 19, 2026 21:42
Signed-off-by: Mustaeen Ahmed <contact@mustaeen.dev>
@must108 must108 force-pushed the containers-list-windows-test branch from 189b030 to 374029c Compare April 20, 2026 18:10
size, _ := tab.ReadRow(lines[1], "SIZE")
assert.Assert(
t,
strings.Contains(size, "(virtual"),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Originally, the string was checked to see if it contained "36.0 MiB (virtual ", but is there a reason for this?

Comment on lines +68 to +70
if !restart {
args = append(args, "--restart=no")
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we move the --restart=no append above the --name / image block? Otherwise, when restart is false, the container exits immediately instead of running with --restart=no.

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