mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
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.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user