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
9a9310df
Commit
9a9310df
authored
Mar 27, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix namesys test
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
1f293eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
namesys/namesys_test.go
namesys/namesys_test.go
+5
-1
No files found.
namesys/namesys_test.go
View file @
9a9310df
...
...
@@ -15,6 +15,7 @@ import (
ci
"github.com/libp2p/go-libp2p-crypto"
peer
"github.com/libp2p/go-libp2p-peer"
pstoremem
"github.com/libp2p/go-libp2p-peerstore/pstoremem"
record
"github.com/libp2p/go-libp2p-record"
)
type
mockResolver
struct
{
...
...
@@ -97,7 +98,10 @@ func TestPublishWithCache0(t *testing.T) {
t
.
Fatal
(
err
)
}
routing
:=
offroute
.
NewOfflineRouter
(
dst
,
ipns
.
Validator
{
KeyBook
:
ps
})
routing
:=
offroute
.
NewOfflineRouter
(
dst
,
record
.
NamespacedValidator
{
"ipns"
:
ipns
.
Validator
{
KeyBook
:
ps
},
"pk"
:
record
.
PublicKeyValidator
{},
})
nsys
:=
NewNameSystem
(
routing
,
dst
,
0
)
p
,
err
:=
path
.
ParsePath
(
unixfs
.
EmptyDirNode
()
.
Cid
()
.
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