breaking compatibility changes. take context for first arguments.
This commit is contained in:
parent
32e66a3d72
commit
5e84b57bf3
18 changed files with 176 additions and 139 deletions
|
@ -1,6 +1,7 @@
|
|||
package mastodon
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
|
@ -26,7 +27,7 @@ func TestRegisterApp(t *testing.T) {
|
|||
}))
|
||||
defer ts.Close()
|
||||
|
||||
app, err := RegisterApp(&AppConfig{
|
||||
app, err := RegisterApp(context.Background(), &AppConfig{
|
||||
Server: ts.URL,
|
||||
Scopes: "read write follow",
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue