Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
0c530bf5
Commit
0c530bf5
authored
Oct 28, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests(peer) ensure String() works when p created WithId
presently, fails
parent
1840a01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
peer/peer_test.go
peer/peer_test.go
+9
-0
No files found.
peer/peer_test.go
View file @
0c530bf5
...
...
@@ -46,3 +46,12 @@ func TestNetAddress(t *testing.T) {
t
.
Error
(
"NetAddress lookup failed"
,
udp
,
udp2
)
}
}
func
TestStringMethodWithSmallId
(
t
*
testing
.
T
)
{
p
:=
WithID
([]
byte
(
string
(
0
)))
p1
,
ok
:=
p
.
(
*
peer
)
if
!
ok
{
t
.
Fatal
(
"WithID doesn't return a peer"
)
}
p1
.
String
()
}
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