Skip to content

Commit 7e9eb72

Browse files
authored
Merge pull request #6293 from cbuesser/go-test-fix
Go test fix
2 parents 5fd5d44 + 5ce2deb commit 7e9eb72

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

fuse/ipns/ipns_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func setupIpnsTest(t *testing.T, node *core.IpfsNode) (*core.IpfsNode, *mountWra
104104

105105
var err error
106106
if node == nil {
107-
node, err = core.NewNode(context.Background(), nil)
107+
node, err = core.NewNode(context.Background(), &core.BuildCfg{})
108108
if err != nil {
109109
t.Fatal(err)
110110
}

fuse/node/mount_test.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestExternalUnmount(t *testing.T) {
4242
// TODO: needed?
4343
maybeSkipFuseTests(t)
4444

45-
node, err := core.NewNode(context.Background(), nil)
45+
node, err := core.NewNode(context.Background(), &core.BuildCfg{})
4646
if err != nil {
4747
t.Fatal(err)
4848
}
@@ -64,9 +64,12 @@ func TestExternalUnmount(t *testing.T) {
6464
mkdir(t, ipnsDir)
6565

6666
err = Mount(node, ipfsDir, ipnsDir)
67-
if strings.Contains(err.Error(), "unable to check fuse version") || err == fuse.ErrOSXFUSENotFound {
68-
t.Skip(err)
67+
if err != nil {
68+
if strings.Contains(err.Error(), "unable to check fuse version") || err == fuse.ErrOSXFUSENotFound {
69+
t.Skip(err)
70+
}
6971
}
72+
7073
if err != nil {
7174
t.Fatalf("error mounting: %v", err)
7275
}

0 commit comments

Comments
 (0)