1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 02:23:24 +00:00

test: Don't run unreliable tests on CI #4171

This commit is contained in:
Nick Craig-Wood
2020-06-15 21:27:40 +01:00
parent ba7fbfa8a7
commit b58bb03e95
4 changed files with 16 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import (
"testing"
"time"
"github.com/rclone/rclone/fstest/testy"
"github.com/stretchr/testify/assert"
)
@@ -215,7 +216,12 @@ func TestPool(t *testing.T) {
} {
t.Run(test.name, func(t *testing.T) {
t.Run("GetPut", func(t *testing.T) { testGetPut(t, test.useMmap, test.unreliable) })
t.Run("Flusher", func(t *testing.T) { testFlusher(t, test.useMmap, test.unreliable) })
t.Run("Flusher", func(t *testing.T) {
if test.name == "canFail" {
testy.SkipUnreliable(t) // fails regularly on macOS
}
testFlusher(t, test.useMmap, test.unreliable)
})
})
}
}