Commit b214a88d authored by David Crawshaw's avatar David Crawshaw

log/syslog: limiting tests on darwin/arm64

Just like darwin/arm.

Change-Id: Ic5c6c0b2fdbb89f4579677e120a8f2dbf300e5b9
Reviewed-on: https://go-review.googlesource.com/8820Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent 1d579439
...@@ -121,8 +121,11 @@ func TestWithSimulated(t *testing.T) { ...@@ -121,8 +121,11 @@ func TestWithSimulated(t *testing.T) {
msg := "Test 123" msg := "Test 123"
transport := []string{"unix", "unixgram", "udp", "tcp"} transport := []string{"unix", "unixgram", "udp", "tcp"}
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { if runtime.GOOS == "darwin" {
transport = []string{"udp", "tcp"} switch runtime.GOARCH {
case "arm", "arm64":
transport = []string{"udp", "tcp"}
}
} }
for _, tr := range transport { for _, tr := range transport {
...@@ -147,8 +150,11 @@ func TestWithSimulated(t *testing.T) { ...@@ -147,8 +150,11 @@ func TestWithSimulated(t *testing.T) {
} }
func TestFlap(t *testing.T) { func TestFlap(t *testing.T) {
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { if runtime.GOOS == "darwin" {
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH) switch runtime.GOARCH {
case "arm", "arm64":
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
}
} }
net := "unix" net := "unix"
...@@ -315,8 +321,11 @@ func TestConcurrentReconnect(t *testing.T) { ...@@ -315,8 +321,11 @@ func TestConcurrentReconnect(t *testing.T) {
const N = 10 const N = 10
const M = 100 const M = 100
net := "unix" net := "unix"
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { if runtime.GOOS == "darwin" {
net = "tcp" switch runtime.GOARCH {
case "arm", "arm64":
net = "tcp"
}
} }
done := make(chan string, N*M) done := make(chan string, N*M)
addr, sock, srvWG := startServer(net, "", done) addr, sock, srvWG := startServer(net, "", done)
......
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