diff --git a/server/irc_handler_test.go b/server/irc_handler_test.go index 6fdb3e17..3fa00d05 100644 --- a/server/irc_handler_test.go +++ b/server/irc_handler_test.go @@ -10,6 +10,7 @@ import ( "github.com/khlieng/dispatch/pkg/irc" "github.com/khlieng/dispatch/storage" + "github.com/khlieng/dispatch/storage/bleve" "github.com/khlieng/dispatch/storage/boltdb" ) @@ -34,6 +35,12 @@ func TestMain(m *testing.M) { } user.SetMessageStore(db) + search, err := bleve.New(storage.Path.Index(user.Username)) + if err != nil { + log.Fatal(err) + } + user.SetMessageSearchProvider(search) + channelStore = storage.NewChannelStore() code := m.Run()