From 1b955fa1fa2e4053cda5086425d8ea75cd6c2764 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:41:16 +0200 Subject: [PATCH] Fix test --- internal/fulltext/bleve_test.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/internal/fulltext/bleve_test.go b/internal/fulltext/bleve_test.go index b7f1cd909..84a282423 100644 --- a/internal/fulltext/bleve_test.go +++ b/internal/fulltext/bleve_test.go @@ -18,16 +18,20 @@ 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