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:
		| @@ -888,6 +888,8 @@ func TestUserNamespace(t *testing.T) { | ||||
| 			err: true, | ||||
| 		}, | ||||
| 	} { | ||||
| 		desc := desc | ||||
| 		test := test | ||||
| 		t.Run(desc, func(t *testing.T) { | ||||
| 			containerConfig.Linux.SecurityContext.NamespaceOptions = &runtime.NamespaceOption{UsernsOptions: test.userNS} | ||||
| 			spec, err := c.containerSpec(testID, testSandboxID, testPid, "", testContainerName, testImageName, containerConfig, sandboxConfig, imageConfig, nil, ociRuntime) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rodrigo Campos
					Rodrigo Campos