Skip to content

Commit e48ce1d

Browse files
committed
fix check-backend
1 parent 5f0a75e commit e48ce1d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/integration/actions_schedule_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestScheduleUpdate(t *testing.T) {
3737
}
3838

3939
func testScheduleUpdatePush(t *testing.T) {
40-
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string) {
40+
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string) {
4141
newCron := "30 5 * * 1,3"
4242
pushScheduleChange(t, u, repo, newCron)
4343
branch, err := git_model.GetBranch(t.Context(), repo.ID, repo.DefaultBranch)
@@ -70,7 +70,7 @@ jobs:
7070

7171
for _, mergeStyle := range mergeStyles {
7272
t.Run(string(mergeStyle), func(t *testing.T) {
73-
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string) {
73+
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string) {
7474
// update workflow file
7575
_, err := files_service.ChangeRepoFiles(t.Context(), repo, user, &files_service.ChangeRepoFilesOptions{
7676
NewBranch: newBranchName,
@@ -101,7 +101,7 @@ jobs:
101101
}
102102

103103
t.Run(string(repo_model.MergeStyleManuallyMerged), func(t *testing.T) {
104-
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string) {
104+
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string) {
105105
// enable manual-merge
106106
doAPIEditRepository(testContext, &api.EditRepoOption{
107107
HasPullRequests: util.ToPointer(true),
@@ -145,7 +145,7 @@ jobs:
145145
}
146146

147147
func testScheduleUpdateMirrorSync(t *testing.T) {
148-
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string) {
148+
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string) {
149149
// create mirror repo
150150
opts := migration.MigrateOptions{
151151
RepoName: "actions-schedule-mirror",
@@ -200,7 +200,7 @@ func testScheduleUpdateMirrorSync(t *testing.T) {
200200
}
201201

202202
func testScheduleUpdateArchiveAndUnarchive(t *testing.T) {
203-
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string) {
203+
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string) {
204204
doAPIEditRepository(testContext, &api.EditRepoOption{
205205
Archived: util.ToPointer(true),
206206
})(t)
@@ -215,7 +215,7 @@ func testScheduleUpdateArchiveAndUnarchive(t *testing.T) {
215215
}
216216

217217
func testScheduleUpdateDisableAndEnableActionsUnit(t *testing.T) {
218-
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string) {
218+
doTestScheduleUpdate(t, func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string) {
219219
doAPIEditRepository(testContext, &api.EditRepoOption{
220220
HasActions: util.ToPointer(false),
221221
})(t)
@@ -229,7 +229,7 @@ func testScheduleUpdateDisableAndEnableActionsUnit(t *testing.T) {
229229
})
230230
}
231231

232-
type scheduleUpdateTrigger func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID string, expectedSpec string)
232+
type scheduleUpdateTrigger func(t *testing.T, u *url.URL, testContext APITestContext, user *user_model.User, repo *repo_model.Repository) (commitID, expectedSpec string)
233233

234234
func doTestScheduleUpdate(t *testing.T, updateTrigger scheduleUpdateTrigger) {
235235
onGiteaRun(t, func(t *testing.T, u *url.URL) {

0 commit comments

Comments
 (0)