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
d2d397ac
Commit
d2d397ac
authored
Sep 13, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1695 from ipfs/fix/ipns-fuse-tests
dont use coremock for fuse tests
parents
e2f60c78
192ee643
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
fuse/ipns/ipns_test.go
fuse/ipns/ipns_test.go
+11
-2
No files found.
fuse/ipns/ipns_test.go
View file @
d2d397ac
...
...
@@ -16,8 +16,9 @@ import (
context
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
core
"github.com/ipfs/go-ipfs/core"
coremock
"github.com/ipfs/go-ipfs/core/mock"
nsfs
"github.com/ipfs/go-ipfs/ipnsfs"
namesys
"github.com/ipfs/go-ipfs/namesys"
offroute
"github.com/ipfs/go-ipfs/routing/offline"
u
"github.com/ipfs/go-ipfs/util"
ci
"github.com/ipfs/go-ipfs/util/testutil/ci"
)
...
...
@@ -101,11 +102,19 @@ func setupIpnsTest(t *testing.T, node *core.IpfsNode) (*core.IpfsNode, *fstest.M
var
err
error
if
node
==
nil
{
node
,
err
=
core
mock
.
NewMockNode
(
)
node
,
err
=
core
.
NewNode
(
context
.
Background
(),
nil
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
err
=
node
.
LoadPrivateKey
()
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
node
.
Routing
=
offroute
.
NewOfflineRouter
(
node
.
Repo
.
Datastore
(),
node
.
PrivateKey
)
node
.
Namesys
=
namesys
.
NewNameSystem
(
node
.
Routing
)
ipnsfs
,
err
:=
nsfs
.
NewFilesystem
(
context
.
Background
(),
node
.
DAG
,
node
.
Namesys
,
node
.
Pinning
,
node
.
PrivateKey
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
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