Skip to content

Commit f2fead5

Browse files
authored
chore(backend): typo in max concurrency error text (#11342)
Signed-off-by: Gage Krumbach <gkrumbach@gmail.com>
1 parent 6684b6d commit f2fead5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/src/apiserver/server/api_converter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ func toModelJob(j interface{}) (*model.Job, error) {
19141914
return nil, util.NewUnknownApiVersionError("RecurringRun", j)
19151915
}
19161916
if maxConcur > 10 || maxConcur < 1 {
1917-
return nil, util.NewInvalidInputError("Max concurrency of a recurring run must be at leas 1 and at most 10. Received %v", maxConcur)
1917+
return nil, util.NewInvalidInputError("Max concurrency of a recurring run must be at least 1 and at most 10. Received %v", maxConcur)
19181918
}
19191919
if trigger != nil && trigger.CronSchedule.Cron != nil {
19201920
if _, err := cron.Parse(*trigger.CronSchedule.Cron); err != nil {

backend/src/apiserver/server/job_server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func TestCreateJob_WrongInput(t *testing.T) {
214214
{Key: &apiv1beta1.ResourceKey{Type: apiv1beta1.ResourceType_EXPERIMENT, Id: experiment.UUID}, Relationship: apiv1beta1.Relationship_OWNER},
215215
},
216216
},
217-
"Max concurrency of a recurring run must be at leas 1 and at most 10. Received 0",
217+
"Max concurrency of a recurring run must be at least 1 and at most 10. Received 0",
218218
},
219219
{
220220
"negative interval seconds",

0 commit comments

Comments
 (0)