Ignore failures due to FUSE not available

This commit is contained in:
Matt Joiner 2014-11-20 16:28:14 -06:00
parent ae28507f30
commit c4bae8f4c2
1 changed files with 5 additions and 0 deletions

View File

@ -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() {