Skip to content

Commit

Permalink
Introduce sleep after running each recipe.
Browse files Browse the repository at this point in the history
* We observe issues when starting all jobs together because this can
  lead to a race condition with multiple writes to kube config file,
  since all clusters will be finished at roughly the same time.
* Thus, we introduce a sleep after each job so clusters won't all be
  created at the same time.
  • Loading branch information
sawsa307 committed Feb 7, 2024
1 parent d38d64a commit 6ab0ed9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/recipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"os/exec"
"path"
"testing"
"time"
)

var testFilePaths = []string{
Expand Down Expand Up @@ -49,6 +50,7 @@ func runRecipeTests(t *testing.T, parentPath string, fileNames []fs.DirEntry) {
}
runRecipeTest(t, path)
})
time.Sleep(30 * time.Second)
}
}

Expand Down

0 comments on commit 6ab0ed9

Please sign in to comment.