mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
23 lines
372 B
Go
23 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)
|
|
}
|
|
}
|