From 70297c3aed39c1073a95aa20c67d5a5366af05ef Mon Sep 17 00:00:00 2001 From: Ivan Andreev Date: Sat, 23 Oct 2021 13:35:20 +0300 Subject: [PATCH] sync/test: TestConcurrentTruncate needs empty files - skip on uptobox --- fs/sync/sync_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go index ebe55da92..731ac9bfd 100644 --- a/fs/sync/sync_test.go +++ b/fs/sync/sync_test.go @@ -2091,6 +2091,9 @@ func testSyncConcurrent(t *testing.T, subtest string) { fstest.CheckItems(t, r.Fremote, itemsBefore...) stats.ResetErrors() err := Sync(ctx, r.Fremote, r.Flocal, false) + if err == fs.ErrorCantUploadEmptyFiles { + t.Skipf("Skip test because remote cannot upload empty files") + } assert.NoError(t, err, "Sync must not return a error") assert.False(t, stats.Errored(), "Low level errors must not have happened") fstest.CheckItems(t, r.Fremote, itemsAfter...)