fix crash on test
This commit is contained in:
parent
eb1c1cf0ae
commit
18d207636a
|
@ -25,6 +25,9 @@ func testWithServer(h http.HandlerFunc, testFunc func(*cli.App)) string {
|
||||||
app.Writer = &buf
|
app.Writer = &buf
|
||||||
app.Metadata = map[string]interface{}{
|
app.Metadata = map[string]interface{}{
|
||||||
"client": client,
|
"client": client,
|
||||||
|
"config": &mastodon.Config{
|
||||||
|
Server: "example.com",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
testFunc(app)
|
testFunc(app)
|
||||||
return buf.String()
|
return buf.String()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user