mount: allow tests to run on CI

This commit is contained in:
Nick Craig-Wood 2022-06-16 12:33:58 +01:00
parent 4a382c09ec
commit a0cb3bbd02

View file

@ -4,17 +4,11 @@
package mount package mount
import ( import (
"runtime"
"testing" "testing"
"github.com/rclone/rclone/fstest/testy"
"github.com/rclone/rclone/vfs/vfstest" "github.com/rclone/rclone/vfs/vfstest"
) )
func TestMount(t *testing.T) { func TestMount(t *testing.T) {
if runtime.NumCPU() <= 2 {
t.Skip("FIXME skipping mount tests as they lock up on <= 2 CPUs - See: https://github.com/rclone/rclone/issues/3154")
}
testy.SkipUnreliable(t)
vfstest.RunTests(t, false, mount) vfstest.RunTests(t, false, mount)
} }