Merge pull request #6293 from cbuesser/go-test-fix

Go test fix
This commit is contained in:
Steven Allen 2019-05-02 17:03:06 -07:00 committed by GitHub
commit 7e9eb72bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -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)
}

View File

@ -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)
}