diff options
author | 2021-03-20 19:44:18 +0100 | |
---|---|---|
committer | 2021-03-20 19:44:18 +0100 | |
commit | 4194f8d88f3bedab6841e80287c007f4c0e6f245 (patch) | |
tree | 4feb2f1b9343ad6e9b082f4a369e65af5873e8d0 /internal/oauth/oauth_test.go | |
parent | add golangci job (diff) | |
download | gotosocial-4194f8d88f3bedab6841e80287c007f4c0e6f245.tar.xz |
fix lint errors
Diffstat (limited to 'internal/oauth/oauth_test.go')
-rw-r--r-- | internal/oauth/oauth_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/oauth/oauth_test.go b/internal/oauth/oauth_test.go index 9ee5ac9a8..6c3a17c14 100644 --- a/internal/oauth/oauth_test.go +++ b/internal/oauth/oauth_test.go @@ -2,6 +2,7 @@ package oauth import ( "context" + "fmt" "testing" "time" @@ -118,7 +119,9 @@ func (suite *OauthTestSuite) TestAPIInitialize() { r := api.New(suite.config, log) api := New(suite.tokenStore, suite.clientStore, suite.conn, log) - api.AddRoutes(r) + if err := api.AddRoutes(r); err != nil { + suite.FailNow(fmt.Sprintf("error initializing api: %s", err)) + } go r.Start() time.Sleep(30 * time.Second) // http://localhost:8080/oauth/authorize?client_id=a-known-client-id&response_type=code&redirect_uri=https://example.org |