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
This commit is contained in:
Roberto Ricci 2021-11-05 14:26:53 +01:00 committed by Ivan Andreev
parent 25366268fe
commit 05150cfb1d

View File

@ -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() {