mirror of
https://github.com/rclone/rclone
synced 2024-09-06 00:08:57 +02:00
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:
parent
e78e73eae7
commit
b323bf34e2
@ -2091,7 +2091,7 @@ 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 {
|
if errors.Cause(err) == fs.ErrorCantUploadEmptyFiles {
|
||||||
t.Skipf("Skip test because remote cannot upload empty files")
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user