@@ -21,7 +21,6 @@ import (
2121"code.gitea.io/gitea/modules/json" 
2222"code.gitea.io/gitea/modules/setting" 
2323api "code.gitea.io/gitea/modules/structs" 
24- actions_service "code.gitea.io/gitea/services/actions" 
2524
2625runnerv1 "code.gitea.io/actions-proto-go/runner/v1" 
2726"connectrpc.com/connect" 
@@ -453,9 +452,6 @@ func TestActionsGiteaContextEphemeral(t *testing.T) {
453452runner  :=  newMockRunner ()
454453runner .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 
460456wfTreePath  :=  ".gitea/workflows/pull.yml" 
461457wfFileContent  :=  `name: Pull Request 
@@ -528,18 +524,12 @@ jobs:
528524token  :=  gtCtx ["token" ].GetStringValue ()
529525assert .Equal (t , actionTask .TokenLastEight , token [len (token )- 8 :])
530526
531- // verify CleanupEphemeralRunners does not remove this runner 
532- actions_service .CleanupEphemeralRunners (t .Context ())
533- 
534527resp , err  :=  runner .client .runnerServiceClient .FetchTask (t .Context (), connect .NewRequest (& runnerv1.FetchTaskRequest {
535528TasksVersion : 0 ,
536529}))
537530assert .NoError (t , err )
538531assert .Nil (t , resp .Msg .Task )
539532
540- // verify CleanupEphemeralRunners does not remove this runner 
541- actions_service .CleanupEphemeralRunners (t .Context ())
542- 
543533runner .client .runnerServiceClient .UpdateTask (t .Context (), connect .NewRequest (& runnerv1.UpdateTaskRequest {
544534State : & runnerv1.TaskState {
545535Id : actionTask .ID ,
0 commit comments