fix: url test

This commit is contained in:
Lakhan Samani
2021-12-11 00:34:30 +05:30
parent 4aa79b1dd5
commit c6c07947ce
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ func processGoogleUserInfo(code string) (db.User, error) {
// Parse and verify ID Token payload.
idToken, err := verifier.Verify(ctx, rawIDToken)
if err != nil {
return user, fmt.Errorf("unable to verify id_token:", err.Error())
return user, fmt.Errorf("unable to verify id_token: %s", err.Error())
}
// Extract custom claims

View File

@@ -9,7 +9,7 @@ func TestGetHostName(t *testing.T) {
want := "test.herokuapp.com"
if got != want {
t.Errorf("GetHostName Test failed got %q, wanted %q", got, want)
t.Errorf("GetHostName Test failed got %s, wanted %s", got, want)
}
}