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
e5a7ab85
Commit
e5a7ab85
authored
Dec 10, 2013
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix nits found by go tool vet
R=golang-dev, dave, adg CC=golang-dev
https://golang.org/cl/27430043
parent
a4b66b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net_test.go
src/pkg/net/net_test.go
+4
-4
No files found.
src/pkg/net/net_test.go
View file @
e5a7ab85
...
...
@@ -231,12 +231,12 @@ func TestErrorNil(t *testing.T) {
// Make Listen fail by relistening on the same address.
l
,
err
:=
Listen
(
"tcp"
,
"127.0.0.1:0"
)
if
err
!=
nil
{
t
.
Fatal
(
"Listen 127.0.0.1:0: %v"
,
err
)
t
.
Fatal
f
(
"Listen 127.0.0.1:0: %v"
,
err
)
}
defer
l
.
Close
()
l1
,
err
:=
Listen
(
"tcp"
,
l
.
Addr
()
.
String
())
if
err
==
nil
{
t
.
Fatal
(
"second Listen %v: %v"
,
l
.
Addr
(),
err
)
t
.
Fatal
f
(
"second Listen %v: %v"
,
l
.
Addr
(),
err
)
}
if
l1
!=
nil
{
t
.
Fatalf
(
"Listen returned non-nil interface %T(%v) with err != nil"
,
l1
,
l1
)
...
...
@@ -245,12 +245,12 @@ func TestErrorNil(t *testing.T) {
// Make ListenPacket fail by relistening on the same address.
lp
,
err
:=
ListenPacket
(
"udp"
,
"127.0.0.1:0"
)
if
err
!=
nil
{
t
.
Fatal
(
"Listen 127.0.0.1:0: %v"
,
err
)
t
.
Fatal
f
(
"Listen 127.0.0.1:0: %v"
,
err
)
}
defer
lp
.
Close
()
lp1
,
err
:=
ListenPacket
(
"udp"
,
lp
.
LocalAddr
()
.
String
())
if
err
==
nil
{
t
.
Fatal
(
"second Listen %v: %v"
,
lp
.
LocalAddr
(),
err
)
t
.
Fatal
f
(
"second Listen %v: %v"
,
lp
.
LocalAddr
(),
err
)
}
if
lp1
!=
nil
{
t
.
Fatalf
(
"ListenPacket returned non-nil interface %T(%v) with err != nil"
,
lp1
,
lp1
)
...
...
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