@cryptotaxi247 / kubo / commits / 6959b4f03

p2p/net/swarm: fix travis env flag val

the travis docs say the env flag TRAVIS=true but, i want to make absolutely sure. explicitness leaves less room for error.

Juan Batiz-Benet committed Jan 13, 2015 at 23:33 UTC 6959b4f0322bb592543140451e2c7c1659d0a3de
2 files changed +4 -4
.travis.yml
+1 -1
@@ -6,6 +6,6 @@ go:
6 - tip
7
8 script:
9 - - make test
9 + - TRAVES=true make test
10
11 env: TEST_NO_FUSE=1 TEST_VERBOSE=1
p2p/net/swarm/dial_test.go
+3 -3
@@ -114,7 +114,7 @@ func TestDialWait(t *testing.T) {
114 defer s1.Close()
115
116 s1.dialT = time.Millisecond * 300 // lower timeout for tests.
117 - if os.Getenv("TRAVIS") == "1" {
117 + if os.Getenv("TRAVIS") == "true" {
118 s1.dialT = time.Second
119 }
120
@@ -148,7 +148,7 @@ func TestDialWait(t *testing.T) {
148
149 func TestDialBackoff(t *testing.T) {
150 // t.Skip("skipping for another test")
151 - if os.Getenv("TRAVIS") == "1" {
151 + if os.Getenv("TRAVIS") == "true" {
152 t.Skip("travis will never have fun with this test")
153 }
154
@@ -375,7 +375,7 @@ func TestDialBackoffClears(t *testing.T) {
375 defer s2.Close()
376 s1.dialT = time.Millisecond * 300 // lower timeout for tests.
377 s2.dialT = time.Millisecond * 300 // lower timeout for tests.
378 - if os.Getenv("TRAVIS") == "1" {
378 + if os.Getenv("TRAVIS") == "true" {
379 s1.dialT = time.Second
380 s2.dialT = time.Second
381 }