sync/test: TestConcurrentTruncate needs empty files - skip on uptobox

This commit is contained in:
Ivan Andreev 2021-10-23 13:35:20 +03:00
parent a074a2b983
commit 70297c3aed

View File

@ -2091,6 +2091,9 @@ func testSyncConcurrent(t *testing.T, subtest string) {
fstest.CheckItems(t, r.Fremote, itemsBefore...) fstest.CheckItems(t, r.Fremote, itemsBefore...)
stats.ResetErrors() stats.ResetErrors()
err := Sync(ctx, r.Fremote, r.Flocal, false) 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.NoError(t, err, "Sync must not return a error")
assert.False(t, stats.Errored(), "Low level errors must not have happened") assert.False(t, stats.Errored(), "Low level errors must not have happened")
fstest.CheckItems(t, r.Fremote, itemsAfter...) fstest.CheckItems(t, r.Fremote, itemsAfter...)