mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-07 09:41:16 +08: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>
18 lines
309 B
Go
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)
|
|
}
|
|
}
|