Commit 9f8999a8 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

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.
parent 126c2b39
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment