Skip to content

Commit

Permalink
run build tests sequentally
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Oct 2, 2024
1 parent 8a512d6 commit 71beece
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions pkg/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestDependencyResolution(t *testing.T) {
}
}

func TestIdempotentBuild(t *testing.T) {
func TestIdempotentBuild(t *testing.T) { //nolint:tparallel
t.Parallel()
buildsrv, err := SetupTestLocalBuildService(t)
if err != nil {
Expand All @@ -121,9 +121,7 @@ func TestIdempotentBuild(t *testing.T) {
t.Fatalf("test setup %v", err)
}

t.Run("should rebuild same artifact", func(t *testing.T) {
t.Parallel()

t.Run("should rebuild same artifact", func(t *testing.T) { //nolint:paralleltest
testCases := []struct {
title string
platform string
Expand Down Expand Up @@ -151,9 +149,7 @@ func TestIdempotentBuild(t *testing.T) {
}

for _, tc := range testCases {
t.Run(tc.title, func(t *testing.T) {
t.Parallel()

t.Run(tc.title, func(t *testing.T) { //nolint:paralleltest
rebuild, err := buildsrv.Build(
context.TODO(),
tc.platform,
Expand All @@ -176,9 +172,7 @@ func TestIdempotentBuild(t *testing.T) {
}
})

t.Run("should build a different artifact", func(t *testing.T) {
t.Parallel()

t.Run("should build a different artifact", func(t *testing.T) { //nolint:paralleltest
testCases := []struct {
title string
platform string
Expand Down Expand Up @@ -223,9 +217,7 @@ func TestIdempotentBuild(t *testing.T) {
}

for _, tc := range testCases {
t.Run(tc.title, func(t *testing.T) {
t.Parallel()

t.Run(tc.title, func(t *testing.T) { //nolint:paralleltest
rebuild, err := buildsrv.Build(
context.TODO(),
tc.platform,
Expand Down

0 comments on commit 71beece

Please sign in to comment.