Commit d402da30 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Split up test failures

parent 2f6b8edc
......@@ -98,8 +98,12 @@ func TestPreAuthorizeJWT(t *testing.T) {
}
claims, ok := token.Claims.(jwt.MapClaims)
if !ok || !token.Valid {
t.Fatal("claims cast failed or token invalid")
if !ok {
t.Fatal("claims cast failed")
}
if !token.Valid {
t.Fatal("JWT token invalid")
}
if claims["iss"] != "gitlab-workhorse" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment