mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
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>
This commit is contained in:
17
internal/workers/scheduler_test.go
Normal file
17
internal/workers/scheduler_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user