Remove 'go' from calling 'cancel'
https://github.com/mattn/go-mastodon/pull/28#discussion_r112162740
This commit is contained in:
parent
fb53d41dd9
commit
b105e8554c
2 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ func TestRegisterAppWithCancel(t *testing.T) {
|
|||
defer ts.Close()
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
go cancel()
|
||||
cancel()
|
||||
_, err := RegisterApp(ctx, &AppConfig{
|
||||
Server: ts.URL,
|
||||
Scopes: "read write follow",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue