提交 6959b4f0 作者: Juan Batiz-Benet

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.
上级 920ddc7f
......@@ -6,6 +6,6 @@ go:
- tip
script:
- make test
- TRAVES=true make test
env: TEST_NO_FUSE=1 TEST_VERBOSE=1
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论