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:
Laura
2019-06-29 03:17:18 +02:00
committed by Nick Craig-Wood
parent 6cd7c3b774
commit 38ebdf54be
3 changed files with 27 additions and 27 deletions

View File

@@ -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),
}