mirror of
https://github.com/restic/restic.git
synced 2026-06-27 11:04:17 +00:00
rclone/fs: parallelize tests
This commit is contained in:
@@ -34,6 +34,7 @@ func findRclone(t testing.TB) {
|
||||
}
|
||||
|
||||
func TestBackendRclone(t *testing.T) {
|
||||
t.Parallel()
|
||||
defer func() {
|
||||
if t.Skipped() {
|
||||
rtest.SkipDisallowed(t, "restic/backend/rclone.TestBackendRclone")
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
// restic should detect rclone exiting.
|
||||
func TestRcloneExit(t *testing.T) {
|
||||
t.Parallel()
|
||||
dir := rtest.TempDir(t)
|
||||
cfg := NewConfig()
|
||||
cfg.Remote = dir
|
||||
|
||||
@@ -652,6 +652,7 @@ func TestPrepareVolumeName(t *testing.T) {
|
||||
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
isEASupported, err := checkAndStoreEASupport(tc.path)
|
||||
test.OK(t, err)
|
||||
test.Equals(t, tc.expectedEASupported, isEASupported)
|
||||
|
||||
Reference in New Issue
Block a user