Skip to content

Commit

Permalink
don't run the reconnect test using TCP on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Apr 18, 2022
1 parent 202fcee commit 6fef558
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion p2p/test/reconnects/reconnect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"io"
"math/rand"
"runtime"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -49,6 +50,9 @@ func TestReconnect5(t *testing.T) {
}

t.Run("using TCP", func(t *testing.T) {
if runtime.GOOS == "darwin" {
t.Skip("TCP RST handling is flaky in OSX, see https://github.com/golang/go/issues/50254")
}
runTest(t, swarmt.OptDisableQUIC)
})

Expand Down Expand Up @@ -121,5 +125,5 @@ func runRound(t *testing.T, hosts []host.Host) {
}
}
return true
}, 500*time.Millisecond, 10*time.Millisecond)
}, 5000*time.Millisecond, 10*time.Millisecond)
}

0 comments on commit 6fef558

Please sign in to comment.