Skip to content

Commit cd06f23

Browse files
everpeacethaJeztah
authored andcommitted
capture desc variable in range variable just in case that it run in parallel mode
Signed-off-by: Shingo Omura <everpeace@gmail.com> (cherry picked from commit dc2fc98) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 30f5c6a commit cd06f23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cri/server/container_create_linux_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@ additional-group-for-root:x:22222:root
13811381
expected: runtimespec.User{UID: 0, GID: 0, AdditionalGids: []uint32{0, 22222}},
13821382
},
13831383
} {
1384+
desc := desc
13841385
t.Run(desc, func(t *testing.T) {
13851386
containerConfig, sandboxConfig, imageConfig, _ := getCreateContainerTestData()
13861387
containerConfig.Linux.SecurityContext = test.securityContext

0 commit comments

Comments
 (0)