Skip to content

Commit

Permalink
create new copy of tc struct for each iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacks4Snacks committed Sep 6, 2024
1 parent ba034fb commit ae1f895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/plugins/trivy/jobspec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func TestCreateVolumes(t *testing.T) {
}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
trivy.CreateVolumeSbomFiles(&tc.vm, &tc.v, &tc.sn, tc.fn, tc.mountPath, tc.cName)

Expand Down

0 comments on commit ae1f895

Please sign in to comment.