Commit 25875207 authored by David Crawshaw's avatar David Crawshaw

log/syslog: avoid unix sockets on darwin/arm

Change-Id: Ice4f78e74ec3025a974ffd9ca5e3d28bb3164f40
Reviewed-on: https://go-review.googlesource.com/6794Reviewed-by: 's avatarHyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
parent 4c6364a8
......@@ -14,6 +14,7 @@ import (
"log"
"net"
"os"
"runtime"
"sync"
"testing"
"time"
......@@ -120,6 +121,10 @@ func TestWithSimulated(t *testing.T) {
msg := "Test 123"
transport := []string{"unix", "unixgram", "udp", "tcp"}
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
transport = []string{"udp", "tcp"}
}
for _, tr := range transport {
done := make(chan string)
addr, sock, srvWG := startServer(tr, "", done)
......@@ -142,6 +147,10 @@ func TestWithSimulated(t *testing.T) {
}
func TestFlap(t *testing.T) {
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
}
net := "unix"
done := make(chan string)
addr, sock, srvWG := startServer(net, "", done)
......@@ -306,9 +315,14 @@ func TestConcurrentReconnect(t *testing.T) {
const N = 10
const M = 100
net := "unix"
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
net = "tcp"
}
done := make(chan string, N*M)
addr, sock, srvWG := startServer(net, "", done)
defer os.Remove(addr)
if net == "unix" {
defer os.Remove(addr)
}
// count all the messages arriving
count := make(chan int)
......
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