From f0b0a61399d6d57c024b3be998f5e118b2f5fc5e Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Thu, 17 Jun 2021 17:17:44 +1000 Subject: [PATCH 1/2] Sleep for 5 min after running --- test/acceptance/acceptance_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/acceptance/acceptance_test.go b/test/acceptance/acceptance_test.go index becae7772..10ac8bf07 100644 --- a/test/acceptance/acceptance_test.go +++ b/test/acceptance/acceptance_test.go @@ -6,6 +6,7 @@ import ( "log" "os" "testing" + "time" "gitlab.com/gitlab-org/gitlab-pages/internal/fixture" ) @@ -64,8 +65,10 @@ func TestMain(m *testing.M) { if ok := TestCertPool.AppendCertsFromPEM([]byte(fixture.Certificate)); !ok { fmt.Println("Failed to load cert!") } + e := m.Run() - os.Exit(m.Run()) + time.Sleep(5 * time.Minute) + os.Exit(e) } func skipUnlessEnabled(t *testing.T, conditions ...string) { -- GitLab From bf05fcb4015644e91bfbe76ffea82d6d1ecece2a Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Thu, 17 Jun 2021 17:24:44 +1000 Subject: [PATCH 2/2] Only sleep for that test --- test/acceptance/config_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/acceptance/config_test.go b/test/acceptance/config_test.go index aa5689695..55a53cc2e 100644 --- a/test/acceptance/config_test.go +++ b/test/acceptance/config_test.go @@ -5,6 +5,7 @@ import ( "net" "net/http" "testing" + "time" "github.com/stretchr/testify/require" ) @@ -68,4 +69,6 @@ func TestMultipleListenersFromEnvironmentVariables(t *testing.T) { rsp.Body.Close() require.Equal(t, http.StatusOK, rsp.StatusCode) } + + time.Sleep(5 * time.Minute) } -- GitLab