Semaphore/services/schedules/SchedulePool_test.go
Denis Gukov b5a99eba7f
Runners (#1439)
* refactor(runners): extract jobs to separate entity
2023-08-27 18:02:51 +02:00

15 lines
237 B
Go

package schedules
import "testing"
func TestValidateCronFormat(t *testing.T) {
err := ValidateCronFormat("* * * *")
if err == nil {
t.Fatal("")
}
err = ValidateCronFormat("* * 1 * *")
if err != nil {
t.Fatal(err.Error())
}
}