From c4bae8f4c2d1cdb9f9c66b9df251357aa3fdb3a9 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 20 Nov 2014 16:28:14 -0600 Subject: [PATCH] Ignore failures due to FUSE not available --- fs/torrentfs_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 2b4d43cc..b6fc297d 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -11,6 +11,7 @@ import ( "os" "path/filepath" "strconv" + "strings" "testing" "time" @@ -93,11 +94,15 @@ func TestUnmountWedged(t *testing.T) { DisableTrackers: true, NoDHT: true, }) + defer client.Stop() log.Printf("%+v", *layout.Metainfo) client.AddTorrent(layout.Metainfo) fs := New(client) fuseConn, err := fuse.Mount(layout.MountDir) if err != nil { + if strings.Contains(err.Error(), "fuse") { + t.Skip(err) + } t.Fatal(err) } go func() { -- 2.48.1