Places: Remove unique label index and purge unused location infos #1664

This commit is contained in:
Michael Mayer
2021-11-20 19:14:00 +01:00
parent 9f1c456fe8
commit 403eb0d71d
16 changed files with 66 additions and 70 deletions

View File

@@ -5,9 +5,10 @@ import (
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/mutex"
"github.com/stretchr/testify/assert"
)
func TestPrism_Start(t *testing.T) {
@@ -23,13 +24,16 @@ func TestPrism_Start(t *testing.T) {
t.Fatal(err)
}
if err := worker.Start(time.Second, true); err == nil {
delay := time.Second
interval := time.Second
if err := worker.Start(delay, interval, true); err == nil {
t.Fatal("error expected")
}
mutex.MetaWorker.Stop()
if err := worker.Start(time.Second, true); err != nil {
if err := worker.Start(delay, interval, true); err != nil {
t.Fatal(err)
}
}