Browse Source

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.
pull/2/head
Juan Batiz-Benet 10 years ago
parent
commit
9f8999a8cf
  1. 6
      net/swarm/dial_test.go

6
net/swarm/dial_test.go

@ -114,7 +114,7 @@ func TestDialWait(t *testing.T) {
defer s1.Close()
s1.dialT = time.Millisecond * 300 // lower timeout for tests.
if os.Getenv("TRAVIS") == "1" {
if os.Getenv("TRAVIS") == "true" {
s1.dialT = time.Second
}
@ -148,7 +148,7 @@ func TestDialWait(t *testing.T) {
func TestDialBackoff(t *testing.T) {
// t.Skip("skipping for another test")
if os.Getenv("TRAVIS") == "1" {
if os.Getenv("TRAVIS") == "true" {
t.Skip("travis will never have fun with this test")
}
@ -375,7 +375,7 @@ func TestDialBackoffClears(t *testing.T) {
defer s2.Close()
s1.dialT = time.Millisecond * 300 // lower timeout for tests.
s2.dialT = time.Millisecond * 300 // lower timeout for tests.
if os.Getenv("TRAVIS") == "1" {
if os.Getenv("TRAVIS") == "true" {
s1.dialT = time.Second
s2.dialT = time.Second
}

Loading…
Cancel
Save