Skip to content

Commit

Permalink
capture desc variable in range variable just in case that it run in p…
Browse files Browse the repository at this point in the history
…arallel mode

Signed-off-by: Shingo Omura <everpeace@gmail.com>
(cherry picked from commit dc2fc98)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
everpeace authored and thaJeztah committed Jul 14, 2023
1 parent 30f5c6a commit cd06f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cri/server/container_create_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,7 @@ additional-group-for-root:x:22222:root
expected: runtimespec.User{UID: 0, GID: 0, AdditionalGids: []uint32{0, 22222}},
},
} {
desc := desc
t.Run(desc, func(t *testing.T) {
containerConfig, sandboxConfig, imageConfig, _ := getCreateContainerTestData()
containerConfig.Linux.SecurityContext = test.securityContext
Expand Down

0 comments on commit cd06f23

Please sign in to comment.