@@ -21,7 +21,6 @@ import (
21
21
"code.gitea.io/gitea/modules/json"
22
22
"code.gitea.io/gitea/modules/setting"
23
23
api "code.gitea.io/gitea/modules/structs"
24
- actions_service "code.gitea.io/gitea/services/actions"
25
24
26
25
runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
27
26
"connectrpc.com/connect"
@@ -453,9 +452,6 @@ func TestActionsGiteaContextEphemeral(t *testing.T) {
453
452
runner := newMockRunner ()
454
453
runner .registerAsRepoRunner (t , baseRepo .OwnerName , baseRepo .Name , "mock-runner" , []string {"ubuntu-latest" }, true )
455
454
456
- // verify CleanupEphemeralRunners does not remove this runner
457
- actions_service .CleanupEphemeralRunners (t .Context ())
458
-
459
455
// init the workflow
460
456
wfTreePath := ".gitea/workflows/pull.yml"
461
457
wfFileContent := `name: Pull Request
@@ -528,18 +524,12 @@ jobs:
528
524
token := gtCtx ["token" ].GetStringValue ()
529
525
assert .Equal (t , actionTask .TokenLastEight , token [len (token )- 8 :])
530
526
531
- // verify CleanupEphemeralRunners does not remove this runner
532
- actions_service .CleanupEphemeralRunners (t .Context ())
533
-
534
527
resp , err := runner .client .runnerServiceClient .FetchTask (t .Context (), connect .NewRequest (& runnerv1.FetchTaskRequest {
535
528
TasksVersion : 0 ,
536
529
}))
537
530
assert .NoError (t , err )
538
531
assert .Nil (t , resp .Msg .Task )
539
532
540
- // verify CleanupEphemeralRunners does not remove this runner
541
- actions_service .CleanupEphemeralRunners (t .Context ())
542
-
543
533
runner .client .runnerServiceClient .UpdateTask (t .Context (), connect .NewRequest (& runnerv1.UpdateTaskRequest {
544
534
State : & runnerv1.TaskState {
545
535
Id : actionTask .ID ,
0 commit comments