Files
photoprism/internal/workers/scheduler_test.go
Michael Mayer 0e7c91f1b6 Config: Allow scheduling of indexing and backup tasks #2495 #2608 #4243
Note that this is "bleeding edge" functionality and that the newly added
config option PHOTOPRISM_BACKUP_RETAIN can be set, but does not have any
effect yet. Feedback welcome!

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-11 19:11:49 +02:00

18 lines
309 B
Go

package workers
import (
"testing"
"github.com/photoprism/photoprism/internal/config"
)
func TestNewJob(t *testing.T) {
if err := NewJob("", config.DefaultBackupSchedule, func() {}); err == nil {
t.Fatal("expected error")
}
if err := NewJob("test", "", func() {}); err != nil {
t.Fatal(err)
}
}