Skip to content

Commit f057ff6

Browse files
committed
Revert "sleep between running tests"
This reverts commit f697eeb.
1 parent 496dfbc commit f057ff6

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

test/pkg/gitea/setup.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"os"
77
"strings"
88
"testing"
9-
"time"
109

1110
"github.com/google/go-github/v53/github"
1211
"gotest.tools/v3/assert"
@@ -82,7 +81,6 @@ func TearDown(ctx context.Context, t *testing.T, topts *TestOpts) {
8281
topts.ParamsRun.Clients.Log.Infof("Not cleaning up and closing PR since TEST_NOCLEANUP is set")
8382
return
8483
}
85-
time.Sleep(5 * time.Second)
8684
repository.NSTearDown(ctx, t, topts.ParamsRun, topts.TargetNS)
8785
_, err := topts.GiteaCNX.Client.DeleteRepo(topts.Opts.Organization, topts.TargetNS)
8886
assert.NilError(t, err)

test/pkg/github/pr.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ import (
99
"testing"
1010

1111
"github.com/google/go-github/v53/github"
12-
"github.com/tektoncd/pipeline/pkg/names"
13-
"gotest.tools/v3/assert"
14-
1512
"github.com/openshift-pipelines/pipelines-as-code/pkg/params"
1613
ghprovider "github.com/openshift-pipelines/pipelines-as-code/pkg/provider/github"
1714
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/options"
1815
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/payload"
1916
"github.com/openshift-pipelines/pipelines-as-code/test/pkg/wait"
17+
"github.com/tektoncd/pipeline/pkg/names"
18+
"gotest.tools/v3/assert"
2019
)
2120

2221
func PushFilesToRef(ctx context.Context, client *github.Client, commitMessage, baseBranch, targetRef, owner, repo string, files map[string]string) (string, error) {

test/pkg/github/setup.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"strconv"
88
"strings"
99
"testing"
10-
"time"
1110

1211
ghlib "github.com/google/go-github/v53/github"
1312
"gotest.tools/v3/assert"
@@ -106,8 +105,6 @@ func TearDown(ctx context.Context, t *testing.T, runcnx *params.Run, ghprovider
106105
runcnx.Clients.Log.Infof("Not cleaning up and closing PR since TEST_NOCLEANUP is set")
107106
return
108107
}
109-
runcnx.Clients.Log.Infof("Sleeping 5 seconds just for giggles and CI flakes")
110-
time.Sleep(5 * time.Second)
111108
runcnx.Clients.Log.Infof("Closing PR %d", prNumber)
112109
if prNumber != -1 {
113110
state := "closed"

0 commit comments

Comments
 (0)