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
2d2aee15
Commit
2d2aee15
authored
Sep 22, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(daemon) multiaddr in test
parent
197046c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
daemon/daemon_test.go
daemon/daemon_test.go
+10
-4
No files found.
daemon/daemon_test.go
View file @
2d2aee15
...
...
@@ -2,11 +2,13 @@ package daemon
import
(
"encoding/base64"
"testing"
ma
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
config
"github.com/jbenet/go-ipfs/config"
core
"github.com/jbenet/go-ipfs/core"
ci
"github.com/jbenet/go-ipfs/crypto"
identify
"github.com/jbenet/go-ipfs/identify"
"testing"
spipe
"github.com/jbenet/go-ipfs/crypto/spipe"
)
func
TestInitializeDaemonListener
(
t
*
testing
.
T
)
{
...
...
@@ -20,7 +22,7 @@ func TestInitializeDaemonListener(t *testing.T) {
t
.
Fatal
(
err
)
}
ident
,
_
:=
identify
.
IDFromPubKey
(
pub
)
ident
,
_
:=
spipe
.
IDFromPubKey
(
pub
)
privKey
:=
base64
.
StdEncoding
.
EncodeToString
(
prbytes
)
pID
:=
ident
.
Pretty
()
...
...
@@ -50,7 +52,11 @@ func TestInitializeDaemonListener(t *testing.T) {
for
_
,
c
:=
range
nodeConfigs
{
node
,
_
:=
core
.
NewIpfsNode
(
c
,
false
)
dl
,
initErr
:=
NewDaemonListener
(
node
,
"localhost:1327"
)
addr
,
err
:=
ma
.
NewMultiaddr
(
"/ip4/127.0.0.1/tcp/1327"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
dl
,
initErr
:=
NewDaemonListener
(
node
,
addr
)
if
initErr
!=
nil
{
t
.
Fatal
(
initErr
)
}
...
...
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