Indexer: Improve stacking and indexing of moved files

This commit is contained in:
Michael Mayer
2020-12-11 22:09:11 +01:00
parent 8a86fbc60f
commit 9f4066edb6
14 changed files with 92 additions and 49 deletions

View File

@@ -3,6 +3,7 @@ package workers
import (
"strings"
"testing"
"time"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/mutex"
@@ -22,13 +23,13 @@ func TestPrism_Start(t *testing.T) {
t.Fatal(err)
}
if err := worker.Start(); err == nil {
if err := worker.Start(time.Second); err == nil {
t.Fatal("error expected")
}
mutex.MetaWorker.Stop()
if err := worker.Start(); err != nil {
if err := worker.Start(time.Second); err != nil {
t.Fatal(err)
}
}