Skip test validateUsername in travis environment

Amine Hilaly created

Change summary

bridge/github/config_test.go | 4 ++++
misc/zsh_completion/git-bug  | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)

Detailed changes

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
 	}

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'