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-unixfs
Commits
854ae2c5
Commit
854ae2c5
authored
10 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:llSourcell/go-ipfs
parents
782976f4
0b5447a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
routing/dht/dht_test.go
routing/dht/dht_test.go
+7
-0
No files found.
routing/dht/dht_test.go
View file @
854ae2c5
...
...
@@ -11,6 +11,7 @@ import (
swarm
"github.com/jbenet/go-ipfs/swarm"
u
"github.com/jbenet/go-ipfs/util"
"bytes"
"fmt"
"time"
)
...
...
@@ -179,6 +180,7 @@ func TestValueGetSet(t *testing.T) {
if
string
(
val
)
!=
"world"
{
t
.
Fatalf
(
"Expected 'world' got '%s'"
,
string
(
val
))
}
}
func
TestProvides
(
t
*
testing
.
T
)
{
...
...
@@ -206,6 +208,11 @@ func TestProvides(t *testing.T) {
t
.
Fatal
(
err
)
}
bits
,
err
:=
dhts
[
3
]
.
getLocal
(
u
.
Key
(
"hello"
))
if
err
!=
nil
&&
bytes
.
Equal
(
bits
,
[]
byte
(
"world"
))
{
t
.
Fatal
(
err
)
}
err
=
dhts
[
3
]
.
Provide
(
u
.
Key
(
"hello"
))
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
This diff is collapsed.
Click to expand it.
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