Skip to content

Commit

Permalink
skip test if tokenfile is n/a
Browse files Browse the repository at this point in the history
Signed-off-by: Sandor Szücs <[email protected]>
  • Loading branch information
szuecs committed Jan 17, 2024
1 parent ba6389b commit 3308930
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zalando/zalando_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ func TestRequestTeamInfo(t *testing.T) {
ginoauth2.AuthInfoURL = OAuth2Endpoint.TokenURL
accessToken, err := getToken()
if err != nil {
t.Errorf("ERR: Could not get Access Token from file, caused by %q: %v", accessToken, err)
t.FailNow()
t.Skipf("ERR: Could not get Access Token from file, caused by %q: %v", accessToken, err)
}

token := oauth2.Token{
Expand Down

0 comments on commit 3308930

Please sign in to comment.