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" "os"
"path/filepath" "path/filepath"
"strconv" "strconv"
"strings"
"testing" "testing"
"time" "time"
@ -93,11 +94,15 @@ func TestUnmountWedged(t *testing.T) {
DisableTrackers: true, DisableTrackers: true,
NoDHT: true, NoDHT: true,
}) })
defer client.Stop()
log.Printf("%+v", *layout.Metainfo) log.Printf("%+v", *layout.Metainfo)
client.AddTorrent(layout.Metainfo) client.AddTorrent(layout.Metainfo)
fs := New(client) fs := New(client)
fuseConn, err := fuse.Mount(layout.MountDir) fuseConn, err := fuse.Mount(layout.MountDir)
if err != nil { if err != nil {
if strings.Contains(err.Error(), "fuse") {
t.Skip(err)
}
t.Fatal(err) t.Fatal(err)
} }
go func() { go func() {