diff --git a/test/acceptance/acceptance_test.go b/test/acceptance/acceptance_test.go index becae77726eaeb89a9495a8356d07e8bc800f5bd..10ac8bf074e62a572ee1893f0d6d4faa9c229409 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) { diff --git a/test/acceptance/config_test.go b/test/acceptance/config_test.go index aa5689695afda4fe055180e9e6dcbc82d05e9df8..55a53cc2e810ed36578b7e867efea6fa792643f9 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) }