Skip to content

Commit

Permalink
Fix unparseable AuthorizeURL test for Go 1.4 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
dghubble committed Aug 30, 2015
1 parent bb12883 commit 70a36c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ func TestAuthorizationURL(t *testing.T) {
func TestAuthorizationURL_CannotParseAuthorizeURL(t *testing.T) {
config := &Config{
Endpoint: Endpoint{
AuthorizeURL: "http://[::1]invalid",
AuthorizeURL: "%gh&%ij",
},
}
url, err := config.AuthorizationURL("any_request_token")
assert.Nil(t, url)
if assert.Error(t, err) {
assert.Contains(t, err.Error(), "parse")
assert.Contains(t, err.Error(), "invalid port")
assert.Contains(t, err.Error(), "invalid URL")
}
}

Expand Down

0 comments on commit 70a36c2

Please sign in to comment.