mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 17:38:52 +02:00
sync/operations: don't use zero length files in tests
We now have a backend (fichier) which doesn't support 0 length files. Therefore all 0 length files in the tests have been replaced with length 1. In a future commit we will implement a test for 0 length files.
This commit is contained in:
@@ -28,7 +28,7 @@ func TestListDirSorted(t *testing.T) {
|
||||
r.WriteObject(context.Background(), "zend.txt", "hello", t1),
|
||||
r.WriteObject(context.Background(), "sub dir/hello world", "hello world", t1),
|
||||
r.WriteObject(context.Background(), "sub dir/hello world2", "hello world", t1),
|
||||
r.WriteObject(context.Background(), "sub dir/ignore dir/.ignore", "", t1),
|
||||
r.WriteObject(context.Background(), "sub dir/ignore dir/.ignore", "-", t1),
|
||||
r.WriteObject(context.Background(), "sub dir/ignore dir/should be ignored", "to ignore", t1),
|
||||
r.WriteObject(context.Background(), "sub dir/sub sub dir/hello world3", "hello world", t1),
|
||||
}
|
||||
|
Reference in New Issue
Block a user