fix crash on test

This commit is contained in:
Yasuhiro Matsumoto 2017-04-19 23:24:36 +09:00
parent eb1c1cf0ae
commit 18d207636a

View File

@ -25,6 +25,9 @@ func testWithServer(h http.HandlerFunc, testFunc func(*cli.App)) string {
app.Writer = &buf
app.Metadata = map[string]interface{}{
"client": client,
"config": &mastodon.Config{
Server: "example.com",
},
}
testFunc(app)
return buf.String()