From 67625b1dbd763e70be4995441c1e18ac631249e9 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 19 Sep 2022 19:45:52 +0100 Subject: [PATCH] ftp: increase timeouts on tests as they were failing locally --- backend/ftp/ftp_internal_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/ftp/ftp_internal_test.go b/backend/ftp/ftp_internal_test.go index bd1d8c677..3e06bb9b4 100644 --- a/backend/ftp/ftp_internal_test.go +++ b/backend/ftp/ftp_internal_test.go @@ -34,9 +34,9 @@ func deriveFs(ctx context.Context, t *testing.T, f fs.Fs, opts settings) fs.Fs { // test that big file uploads do not cause network i/o timeout func (f *Fs) testUploadTimeout(t *testing.T) { const ( - fileSize = 100000000 // 100 MiB - idleTimeout = 40 * time.Millisecond // small because test server is local - maxTime = 10 * time.Second // prevent test hangup + fileSize = 100000000 // 100 MiB + idleTimeout = 1 * time.Second // small because test server is local + maxTime = 10 * time.Second // prevent test hangup ) if testing.Short() {