mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
commit
7e9eb72bfc
@ -104,7 +104,7 @@ func setupIpnsTest(t *testing.T, node *core.IpfsNode) (*core.IpfsNode, *mountWra
|
||||
|
||||
var err error
|
||||
if node == nil {
|
||||
node, err = core.NewNode(context.Background(), nil)
|
||||
node, err = core.NewNode(context.Background(), &core.BuildCfg{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ func TestExternalUnmount(t *testing.T) {
|
||||
// TODO: needed?
|
||||
maybeSkipFuseTests(t)
|
||||
|
||||
node, err := core.NewNode(context.Background(), nil)
|
||||
node, err := core.NewNode(context.Background(), &core.BuildCfg{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@ -64,9 +64,12 @@ func TestExternalUnmount(t *testing.T) {
|
||||
mkdir(t, ipnsDir)
|
||||
|
||||
err = Mount(node, ipfsDir, ipnsDir)
|
||||
if strings.Contains(err.Error(), "unable to check fuse version") || err == fuse.ErrOSXFUSENotFound {
|
||||
t.Skip(err)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "unable to check fuse version") || err == fuse.ErrOSXFUSENotFound {
|
||||
t.Skip(err)
|
||||
}
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("error mounting: %v", err)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user