diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-31 00:33:30 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-03 20:33:33 +0200 |
commit | 7923d6c942114b710089c2b2e7f49bc7ac374b44 (patch) | |
tree | b770de903b1cb6c1baddaa76f0c8ced116f31b55 | |
parent | ebebdfdf35b29b37b5a164d73bc00ca1c2b8e895 (diff) | |
download | git-bug-7923d6c942114b710089c2b2e7f49bc7ac374b44.tar.gz |
Skip test validateUsername in travis environment
-rw-r--r-- | bridge/github/config_test.go | 4 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bridge/github/config_test.go b/bridge/github/config_test.go index e04f327c..4feeaa74 100644 --- a/bridge/github/config_test.go +++ b/bridge/github/config_test.go @@ -98,6 +98,10 @@ func TestSplitURL(t *testing.T) { } func TestValidateUsername(t *testing.T) { + if env := os.Getenv("TRAVIS"); env == "true" { + t.Skip("Travis environment: avoiding non authenticated requests") + } + type args struct { username string } diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 52c242df..c2ed9872 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -8,7 +8,7 @@ case $state in level1) case $words[1] in git-bug) - _arguments '1: :(add bridge commands comment deselect export label ls ls-id ls-label pull push select show status termui title user version webui)' + _arguments '1: :(add bridge commands comment deselect label ls ls-id ls-label pull push select show status termui title user version webui)' ;; *) _arguments '*: :_files' |