From 4925880e5e2b2f06230d3a93774a5120d60bb0a4 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Sat, 27 Aug 2022 07:08:56 +0000 Subject: [PATCH] e2e: Install workflow before starting continuous rolling-updates of runners --- test/e2e/e2e_test.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 0d3b70b8..85c7df19 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -207,6 +207,14 @@ func TestE2E(t *testing.T) { } } + t.Run("Install workflow", func(t *testing.T) { + env.installActionsWorkflow(t, RunnerSets, testID) + }) + + if t.Failed() { + return + } + ctx, cancel := context.WithCancel(context.Background()) go func() { for i := 1; ; i++ { @@ -228,14 +236,6 @@ func TestE2E(t *testing.T) { cancel() }) - t.Run("Install workflow", func(t *testing.T) { - env.installActionsWorkflow(t, RunnerSets, testID) - }) - - if t.Failed() { - return - } - t.Run("Verify workflow run result", func(t *testing.T) { env.verifyActionsWorkflowRun(t, testID) }) @@ -307,6 +307,14 @@ func TestE2E(t *testing.T) { } } + t.Run("Install workflow", func(t *testing.T) { + env.installActionsWorkflow(t, RunnerDeployments, testID) + }) + + if t.Failed() { + return + } + ctx, cancel := context.WithCancel(context.Background()) go func() { for i := 1; ; i++ { @@ -328,14 +336,6 @@ func TestE2E(t *testing.T) { cancel() }) - t.Run("Install workflow", func(t *testing.T) { - env.installActionsWorkflow(t, RunnerDeployments, testID) - }) - - if t.Failed() { - return - } - t.Run("Verify workflow run result", func(t *testing.T) { env.verifyActionsWorkflowRun(t, testID) })