cri: Shadow variables to avoid t.Parallel() issues
This is a follow-up suggested by Fu Wei. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
parent
66f186d42d
commit
3b48fb5b59
@ -888,6 +888,8 @@ func TestUserNamespace(t *testing.T) {
|
|||||||
err: true,
|
err: true,
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
|
desc := desc
|
||||||
|
test := test
|
||||||
t.Run(desc, func(t *testing.T) {
|
t.Run(desc, func(t *testing.T) {
|
||||||
containerConfig.Linux.SecurityContext.NamespaceOptions = &runtime.NamespaceOption{UsernsOptions: test.userNS}
|
containerConfig.Linux.SecurityContext.NamespaceOptions = &runtime.NamespaceOption{UsernsOptions: test.userNS}
|
||||||
spec, err := c.containerSpec(testID, testSandboxID, testPid, "", testContainerName, testImageName, containerConfig, sandboxConfig, imageConfig, nil, ociRuntime)
|
spec, err := c.containerSpec(testID, testSandboxID, testPid, "", testContainerName, testImageName, containerConfig, sandboxConfig, imageConfig, nil, ociRuntime)
|
||||||
|
Loading…
Reference in New Issue
Block a user