Skip to content

Commit

Permalink
test: run slow deploy tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
kzys committed Aug 22, 2024
1 parent ec54ad9 commit 5fd673f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/preflight/apps_v2_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,19 @@ func TestLaunchDetach(t *testing.T) {
require.Contains(f, res.StdOutString(), "success")
}

func TestDeployDetach(t *testing.T) {
func WithParallel(f func(*testing.T)) func(*testing.T) {
return func(t *testing.T) {
t.Parallel()
f(t)
}
}

func TestDeploy(t *testing.T) {
t.Run("Detach", WithParallel(testDeployDetach))
t.Run("DetachBatching", WithParallel(testDeployDetachBatching))
}

func testDeployDetach(t *testing.T) {
f := testlib.NewTestEnvFromEnv(t)
appName := f.CreateRandomAppName()

Expand All @@ -428,7 +440,7 @@ func TestDeployDetach(t *testing.T) {
require.Contains(f, res.StdOutString(), "started")
}

func TestDeployDetachBatching(t *testing.T) {
func testDeployDetachBatching(t *testing.T) {
f := testlib.NewTestEnvFromEnv(t)
appName := f.CreateRandomAppName()

Expand Down

0 comments on commit 5fd673f

Please sign in to comment.