Fix irc handler tests
This commit is contained in:
parent
24f9553aa5
commit
09248edd59
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue