Skip to content

Commit e212011

Browse files
committed
remove timeout
1 parent a9a826f commit e212011

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/integration/repo_webhook_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"path"
1313
"strings"
1414
"testing"
15-
"time"
1615

1716
auth_model "code.gitea.io/gitea/models/auth"
1817
"code.gitea.io/gitea/models/repo"
@@ -1246,8 +1245,6 @@ jobs:
12461245
assert.Equal(t, "repo1", webhookData.payloads[0].Repo.Name)
12471246
assert.Equal(t, "user2/repo1", webhookData.payloads[0].Repo.FullName)
12481247

1249-
time.Sleep(15 * time.Second) // wait for the workflow to be processed
1250-
12511248
// Call cancel ui api
12521249
// Only a web UI API exists for cancelling workflow runs, so use the UI endpoint.
12531250
cancelURL := fmt.Sprintf("/user2/repo1/actions/runs/%d/cancel", webhookData.payloads[0].WorkflowRun.RunNumber)

0 commit comments

Comments
 (0)