Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
705b4544
Commit
705b4544
authored
Feb 09, 2013
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log/syslog: remove socket files after tests
R=golang-dev, iant CC=golang-dev
https://golang.org/cl/7305065
parent
a0430dae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
syslog_test.go
src/pkg/log/syslog/syslog_test.go
+5
-0
No files found.
src/pkg/log/syslog/syslog_test.go
View file @
705b4544
...
@@ -110,6 +110,9 @@ func TestWithSimulated(t *testing.T) {
...
@@ -110,6 +110,9 @@ func TestWithSimulated(t *testing.T) {
for
_
,
tr
:=
range
transport
{
for
_
,
tr
:=
range
transport
{
done
:=
make
(
chan
string
)
done
:=
make
(
chan
string
)
addr
:=
startServer
(
tr
,
""
,
done
)
addr
:=
startServer
(
tr
,
""
,
done
)
if
tr
==
"unix"
||
tr
==
"unixgram"
{
defer
os
.
Remove
(
addr
)
}
s
,
err
:=
Dial
(
tr
,
addr
,
LOG_INFO
|
LOG_USER
,
"syslog_test"
)
s
,
err
:=
Dial
(
tr
,
addr
,
LOG_INFO
|
LOG_USER
,
"syslog_test"
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"Dial() failed: %v"
,
err
)
t
.
Fatalf
(
"Dial() failed: %v"
,
err
)
...
@@ -127,6 +130,7 @@ func TestFlap(t *testing.T) {
...
@@ -127,6 +130,7 @@ func TestFlap(t *testing.T) {
net
:=
"unix"
net
:=
"unix"
done
:=
make
(
chan
string
)
done
:=
make
(
chan
string
)
addr
:=
startServer
(
net
,
""
,
done
)
addr
:=
startServer
(
net
,
""
,
done
)
defer
os
.
Remove
(
addr
)
s
,
err
:=
Dial
(
net
,
addr
,
LOG_INFO
|
LOG_USER
,
"syslog_test"
)
s
,
err
:=
Dial
(
net
,
addr
,
LOG_INFO
|
LOG_USER
,
"syslog_test"
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -278,6 +282,7 @@ func TestConcurrentReconnect(t *testing.T) {
...
@@ -278,6 +282,7 @@ func TestConcurrentReconnect(t *testing.T) {
net
:=
"unix"
net
:=
"unix"
done
:=
make
(
chan
string
)
done
:=
make
(
chan
string
)
addr
:=
startServer
(
net
,
""
,
done
)
addr
:=
startServer
(
net
,
""
,
done
)
defer
os
.
Remove
(
addr
)
// count all the messages arriving
// count all the messages arriving
count
:=
make
(
chan
int
)
count
:=
make
(
chan
int
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment