mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 02:14:42 +01: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