summaryrefslogtreecommitdiffstats
path: root/models/oauth2_application_test.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-06-07 07:27:09 +0200
committerGitHub <noreply@github.com>2021-06-07 07:27:09 +0200
commit3607f79d7869046d919fed05a21b55b6e61df1fa (patch)
tree9a176a4d5b67ac3a81ae210e9164d81959221ce0 /models/oauth2_application_test.go
parent51775f65bc933843199320b040186703a2bb9f51 (diff)
downloadgitea-3607f79d7869046d919fed05a21b55b6e61df1fa.tar.gz
gitea-3607f79d7869046d919fed05a21b55b6e61df1fa.zip
Fixed assert statements. (#16089)
Diffstat (limited to 'models/oauth2_application_test.go')
-rw-r--r--models/oauth2_application_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/oauth2_application_test.go b/models/oauth2_application_test.go
index 511d019465..7a4bce85c0 100644
--- a/models/oauth2_application_test.go
+++ b/models/oauth2_application_test.go
@@ -219,11 +219,11 @@ func TestOAuth2AuthorizationCode_GenerateRedirectURI(t *testing.T) {
redirect, err := code.GenerateRedirectURI("thestate")
assert.NoError(t, err)
- assert.Equal(t, redirect.String(), "https://example.com/callback?code=thecode&state=thestate")
+ assert.Equal(t, "https://example.com/callback?code=thecode&state=thestate", redirect.String())
redirect, err = code.GenerateRedirectURI("")
assert.NoError(t, err)
- assert.Equal(t, redirect.String(), "https://example.com/callback?code=thecode")
+ assert.Equal(t, "https://example.com/callback?code=thecode", redirect.String())
}
func TestOAuth2AuthorizationCode_Invalidate(t *testing.T) {