From 678941afc1f50fb434d2bae7e9d94c23187928a2 Mon Sep 17 00:00:00 2001 From: nielash Date: Mon, 22 Apr 2024 19:25:05 -0400 Subject: [PATCH] mailru: use --tpslimit 10 on bisync tests see https://github.com/rclone/rclone/issues/7768#issuecomment-2060888980 --- cmd/bisync/bisync_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.go index f247c3c55..dd9f91ee3 100644 --- a/cmd/bisync/bisync_test.go +++ b/cmd/bisync/bisync_test.go @@ -941,6 +941,9 @@ func (b *bisyncTest) checkPreReqs(ctx context.Context, opt *bisync.Options) (con b.fs2.Features().Disable("Copy") // API has longstanding bug for conflictBehavior=replace https://github.com/rclone/rclone/issues/4590 b.fs2.Features().Disable("Move") } + if strings.Contains(strings.ToLower(fs.ConfigString(b.fs1)), "mailru") || strings.Contains(strings.ToLower(fs.ConfigString(b.fs2)), "mailru") { + fs.GetConfig(ctx).TPSLimit = 10 // https://github.com/rclone/rclone/issues/7768#issuecomment-2060888980 + } if (!b.fs1.Features().CanHaveEmptyDirectories || !b.fs2.Features().CanHaveEmptyDirectories) && (b.testCase == "createemptysrcdirs" || b.testCase == "rmdirs") { b.t.Skip("skipping test as remote does not support empty dirs") }