From 714a72cdd4c808db48facae64d43d06f2bf98444 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 1 Jun 2017 11:19:45 +1000 Subject: [PATCH] Tighten FUSE test skipping --- fs/torrentfs_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 53fcc400..dcd50fb8 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -8,7 +8,6 @@ import ( _ "net/http/pprof" "os" "path/filepath" - "strings" "testing" "time" @@ -102,11 +101,11 @@ func TestUnmountWedged(t *testing.T) { fs := New(client) fuseConn, err := fuse.Mount(layout.MountDir) if err != nil { - msg := fmt.Sprintf("error mounting: %s", err) - if strings.Contains(err.Error(), "fuse") || err.Error() == "exit status 71" { - t.Skip(msg) + switch err.Error() { + case "cannot locate OSXFUSE": + t.Skip(err) } - t.Fatal(msg) + t.Fatal(err) } go func() { server := fusefs.New(fuseConn, &fusefs.Config{ -- 2.44.0