Ignore failures due to FUSE not available
This commit is contained in:
parent
ae28507f30
commit
c4bae8f4c2
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue