fix crash on test

pull/32/head
Yasuhiro Matsumoto 2017-04-19 23:24:36 +09:00
parent eb1c1cf0ae
commit 18d207636a
1 changed files with 3 additions and 0 deletions

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()