mirror of
https://github.com/rclone/rclone.git
synced 2025-12-16 00:04:40 +00:00
test: Don't run unreliable tests on CI #4171
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/rclone/rclone/fstest/testy"
|
||||
)
|
||||
|
||||
func TestStatsGroupOperations(t *testing.T) {
|
||||
@@ -71,6 +73,7 @@ func TestStatsGroupOperations(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("memory is reclaimed", func(t *testing.T) {
|
||||
testy.SkipUnreliable(t)
|
||||
var (
|
||||
count = 1000
|
||||
start, end runtime.MemStats
|
||||
|
||||
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/rclone/rclone/fs/rc"
|
||||
"github.com/rclone/rclone/fs/rc/rcflags"
|
||||
"github.com/rclone/rclone/fstest/testy"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -19,6 +20,7 @@ func TestNewJobs(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestJobsKickExpire(t *testing.T) {
|
||||
testy.SkipUnreliable(t)
|
||||
jobs := newJobs()
|
||||
jobs.opt.JobExpireInterval = time.Millisecond
|
||||
assert.Equal(t, false, jobs.expireRunning)
|
||||
@@ -33,6 +35,7 @@ func TestJobsKickExpire(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestJobsExpire(t *testing.T) {
|
||||
testy.SkipUnreliable(t)
|
||||
wait := make(chan struct{})
|
||||
jobs := newJobs()
|
||||
jobs.opt.JobExpireInterval = time.Millisecond
|
||||
|
||||
Reference in New Issue
Block a user