sync/test: skip test ConcurrentTruncate on uptobox (take 2)

The test is not applicable to uptobox which can't upload empty files.
The test was not skipped as intended because the direct error was compared.
This fix will compare error Cause because Sync wraps the error.
This commit is contained in:
Ivan Andreev 2021-11-01 16:44:19 +03:00
parent e78e73eae7
commit b323bf34e2

View file

@ -2091,7 +2091,7 @@ 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 {
if errors.Cause(err) == fs.ErrorCantUploadEmptyFiles {
t.Skipf("Skip test because remote cannot upload empty files")
}
assert.NoError(t, err, "Sync must not return a error")