From 09248edd59d8eb865c9e23ccaa8db96df1ed1f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Fri, 1 Jun 2018 03:37:22 +0200 Subject: [PATCH] Fix irc handler tests --- server/irc_handler_test.go | 7 +++++++ 1 file changed, 7 insertions(+) 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()