Commit e123a79f authored by Jeromy's avatar Jeromy
Browse files

make test smaller for osx

parent d3a90434
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"io" "io"
"net" "net"
"runtime"
"strings" "strings"
"sync" "sync"
"testing" "testing"
...@@ -464,6 +465,9 @@ func TestConcurrentAccept(t *testing.T) { ...@@ -464,6 +465,9 @@ func TestConcurrentAccept(t *testing.T) {
n := 300 n := 300
delay := time.Millisecond * 20 delay := time.Millisecond * 20
if runtime.GOOS == "darwin" {
n = 100
}
p1.Addr = l1.Multiaddr() // Addr has been determined by kernel. p1.Addr = l1.Multiaddr() // Addr has been determined by kernel.
......
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