mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-05 16:57:17 +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>
24 lines
372 B
Go
24 lines
372 B
Go
package workers
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/photoprism/photoprism/internal/config"
|
|
)
|
|
|
|
func TestIndex_Start(t *testing.T) {
|
|
conf := config.TestConfig()
|
|
|
|
t.Logf("database-dsn: %s", conf.DatabaseDsn())
|
|
|
|
worker := NewIndex(conf)
|
|
|
|
assert.IsType(t, &Index{}, worker)
|
|
|
|
if err := worker.Start(); err != nil {
|
|
t.Error(err)
|
|
}
|
|
}
|