Skip to content

Commit f4b6e60

Browse files
committed
remove calling CleanupEphemeralRunners in test
* pgsql does not work
1 parent 8f79a8f commit f4b6e60

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/integration/actions_job_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"code.gitea.io/gitea/modules/json"
2222
"code.gitea.io/gitea/modules/setting"
2323
api "code.gitea.io/gitea/modules/structs"
24-
actions_service "code.gitea.io/gitea/services/actions"
2524

2625
runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
2726
"connectrpc.com/connect"
@@ -453,9 +452,6 @@ func TestActionsGiteaContextEphemeral(t *testing.T) {
453452
runner := newMockRunner()
454453
runner.registerAsRepoRunner(t, baseRepo.OwnerName, baseRepo.Name, "mock-runner", []string{"ubuntu-latest"}, true)
455454

456-
// verify CleanupEphemeralRunners does not remove this runner
457-
actions_service.CleanupEphemeralRunners(t.Context())
458-
459455
// init the workflow
460456
wfTreePath := ".gitea/workflows/pull.yml"
461457
wfFileContent := `name: Pull Request
@@ -528,18 +524,12 @@ jobs:
528524
token := gtCtx["token"].GetStringValue()
529525
assert.Equal(t, actionTask.TokenLastEight, token[len(token)-8:])
530526

531-
// verify CleanupEphemeralRunners does not remove this runner
532-
actions_service.CleanupEphemeralRunners(t.Context())
533-
534527
resp, err := runner.client.runnerServiceClient.FetchTask(t.Context(), connect.NewRequest(&runnerv1.FetchTaskRequest{
535528
TasksVersion: 0,
536529
}))
537530
assert.NoError(t, err)
538531
assert.Nil(t, resp.Msg.Task)
539532

540-
// verify CleanupEphemeralRunners does not remove this runner
541-
actions_service.CleanupEphemeralRunners(t.Context())
542-
543533
runner.client.runnerServiceClient.UpdateTask(t.Context(), connect.NewRequest(&runnerv1.UpdateTaskRequest{
544534
State: &runnerv1.TaskState{
545535
Id: actionTask.ID,

0 commit comments

Comments
 (0)