Skip to content

Commit

Permalink
fix: Skip running --token testing if it is not on CI (argoproj#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
whynowy authored Jan 30, 2020
1 parent aece7e6 commit 16aed5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/cli_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package e2e

import (
"os"
"testing"
"time"

Expand Down Expand Up @@ -43,6 +44,9 @@ func (s *CLISuite) TestToken() {
}

func (s *CLISuite) TestTokenArg() {
if os.Getenv("CI") != "true" {
s.T().SkipNow()
}
s.Given().RunCli([]string{"list", "--user", "fake_token_user", "--token", "badtoken"}, func(t *testing.T, output string, err error) {
assert.Error(t, err)
})
Expand Down

0 comments on commit 16aed5c

Please sign in to comment.