diff --git a/cmd/gangway/handlers_test.go b/cmd/gangway/handlers_test.go index 52334afea..ab475675f 100644 --- a/cmd/gangway/handlers_test.go +++ b/cmd/gangway/handlers_test.go @@ -87,8 +87,11 @@ func TestUnauthedCommandlineHandlerRedirect(t *testing.T) { func TestParseToken(t *testing.T) { idToken := "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.EkN-DOsnsuRjRO6BxXemmJDm3HbxrbRzXglbN2S4sOkopdU4IsDxTI8jO19W_A4K8ZPJijNLis4EZsHeY559a4DFOd50_OqgHGuERTqYZyuhtF39yxJPAjUESwxk2J5k_4zM3O-vtd1Ghyo4IbqKKSy6J9mTniYJPenn5-HIirE" - token, _ := parseToken(idToken) + token, err := parseToken(idToken) + if err != nil { + t.Fatalf("Fatal Error parsing token. %s", err) + } if token.Raw != idToken { t.Errorf("Error parsing token. Expect raw token to be %s, but instead got %s", idToken, token.Raw) }