Commit 705b4544 authored by Shenghou Ma's avatar Shenghou Ma

log/syslog: remove socket files after tests

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7305065
parent a0430dae
......@@ -110,6 +110,9 @@ func TestWithSimulated(t *testing.T) {
for _, tr := range transport {
done := make(chan string)
addr := startServer(tr, "", done)
if tr == "unix" || tr == "unixgram" {
defer os.Remove(addr)
}
s, err := Dial(tr, addr, LOG_INFO|LOG_USER, "syslog_test")
if err != nil {
t.Fatalf("Dial() failed: %v", err)
......@@ -127,6 +130,7 @@ func TestFlap(t *testing.T) {
net := "unix"
done := make(chan string)
addr := startServer(net, "", done)
defer os.Remove(addr)
s, err := Dial(net, addr, LOG_INFO|LOG_USER, "syslog_test")
if err != nil {
......@@ -278,6 +282,7 @@ func TestConcurrentReconnect(t *testing.T) {
net := "unix"
done := make(chan string)
addr := startServer(net, "", done)
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