Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2681 from 2opremio/run-tests-in-parallel
Browse files Browse the repository at this point in the history
Run manifest image update unit tests in parallel
  • Loading branch information
2opremio authored Dec 11, 2019
2 parents ba34f97 + 0b9e6c4 commit a5b8d33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/cluster/kubernetes/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ func TestWorkloadContainerUpdates(t *testing.T) {
{"initContainer", case15resource, case15containers, case15image, case15, case15out, emptyContainerImageMap},
} {
t.Run(c.name, func(t *testing.T) {
switch c.imageAnnotations {
localC := c // to avoid races between the parallel tests
t.Parallel()
switch localC.imageAnnotations {
case emptyContainerImageMap:
testUpdateWorkloadContainer(t, c)
testUpdateWorkloadContainer(t, localC)
default:
testUpdateWorkloadImagePath(t, c)
testUpdateWorkloadImagePath(t, localC)
}
})
}
Expand Down

0 comments on commit a5b8d33

Please sign in to comment.