Update test

This commit is contained in:
Till Faelligen 2022-09-05 20:15:54 +02:00
parent c9fb125956
commit efa9667363
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -18,16 +18,17 @@ import (
"reflect"
"testing"
"github.com/matrix-org/dendrite/internal/fulltext"
"github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
"github.com/matrix-org/dendrite/internal/fulltext"
"github.com/matrix-org/dendrite/setup/config"
)
func mustOpenIndex(t *testing.T, tempDir string) *fulltext.Search {
t.Helper()
cfg := config.Fulltext{}
cfg.Defaults(true)
cfg.Defaults(config.DefaultOpts{Generate: true, Monolithic: true})
if tempDir != "" {
cfg.IndexPath = config.Path(tempDir)
cfg.InMemory = false