Skip to content

Conversation

@robertcal
Copy link
Contributor

@robertcal robertcal commented Jan 21, 2026

related : #4613

Signed-off-by: Hajime Ogi <robertcal900@gmail.com>
command: "sleep infinity"
ports:
- "12345:10000"
- "12346:10001/udp"
Copy link
Member

Choose a reason for hiding this comment

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

Could you please re-write to get host port using portlock package ?

https://github.com/containerd/nerdctl/blob/main/pkg/testutil/portlock/portlock.go

Please correct the affected areas.

Additionally, please verify whether other sections can also be rewritten.

Comment on lines -45 to -46
projectName := comp.ProjectName()
t.Logf("projectName=%q", projectName)
Copy link
Member

Choose a reason for hiding this comment

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

Could you write these in testCase.Setup ?
The same applies to other test functions.

@ChengyuZhu6 ChengyuZhu6 added this to the v2.3.0 milestone Jan 22, 2026
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