From 05150cfb1d14c7610d838722d87e2d86fdfa47ec Mon Sep 17 00:00:00 2001 From: Roberto Ricci Date: Fri, 5 Nov 2021 14:26:53 +0100 Subject: [PATCH] backend/ftp: increase testUploadTimeout.maxTime to 10 seconds On slow machines (e.g. Github CI), especially if GOARCH=386, the test for cmd/serve/ftp could fail if this value is too small. Fixes #5783 --- backend/ftp/ftp_internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/ftp/ftp_internal_test.go b/backend/ftp/ftp_internal_test.go index 173ffe1cd..bd1d8c677 100644 --- a/backend/ftp/ftp_internal_test.go +++ b/backend/ftp/ftp_internal_test.go @@ -36,7 +36,7 @@ func (f *Fs) testUploadTimeout(t *testing.T) { const ( fileSize = 100000000 // 100 MiB idleTimeout = 40 * time.Millisecond // small because test server is local - maxTime = 5 * time.Second // prevent test hangup + maxTime = 10 * time.Second // prevent test hangup ) if testing.Short() {