mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
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)
|
|
}
|
|
}
|