aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/config_test.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-05-31 00:33:30 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-03 20:33:33 +0200
commit7923d6c942114b710089c2b2e7f49bc7ac374b44 (patch)
treeb770de903b1cb6c1baddaa76f0c8ced116f31b55 /bridge/github/config_test.go
parentebebdfdf35b29b37b5a164d73bc00ca1c2b8e895 (diff)
downloadgit-bug-7923d6c942114b710089c2b2e7f49bc7ac374b44.tar.gz
Skip test validateUsername in travis environment
Diffstat (limited to 'bridge/github/config_test.go')
-rw-r--r--bridge/github/config_test.go4
1 files changed, 4 insertions, 0 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
}