Semaphore/services/schedules/pool_test.go
2022-01-29 16:24:51 +05: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())
}
}