Files
photoprism/internal/workers/index_test.go
2025-09-24 08:28:38 +02:00

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)
}
}