Commit 66503701 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

dht: TestConnectCollision skip in Travis

+ longer timeout
parent 8037235c
......@@ -19,7 +19,9 @@ import (
netutil "github.com/jbenet/go-ipfs/p2p/test/util"
routing "github.com/jbenet/go-ipfs/routing"
u "github.com/jbenet/go-ipfs/util"
ci "github.com/jbenet/go-ipfs/util/testutil/ci"
travisci "github.com/jbenet/go-ipfs/util/testutil/ci/travis"
)
var testCaseValues = map[u.Key][]byte{}
......@@ -738,6 +740,9 @@ func TestConnectCollision(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
if travisci.IsRunning() {
t.Skip("Skipping on Travis-CI.")
}
runTimes := 10
......@@ -767,7 +772,7 @@ func TestConnectCollision(t *testing.T) {
errs <- err
}()
timeout := time.After(time.Second)
timeout := time.After(5 * time.Second)
select {
case e := <-errs:
if e != nil {
......
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