Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

dirtree: make tests more reliable

Nick Craig-Wood9cafeeb4b640
diff --git a/fs/dirtree/dirtree_test.go b/fs/dirtree/dirtree_test.go
index 7971174b6..1120ec369 100644
--- a/fs/dirtree/dirtree_test.go
+++ b/fs/dirtree/dirtree_test.go
@@ -119,6 +119,7 @@ func TestDirTreeCheckParents(t *testing.T) {
dt.Add(mockobject.New("dir/subdir2/sausage2"))
dt.CheckParents("")
+ dt.Sort() // sort since the exact order of adding parents is not defined
assert.Equal(t, `/
dir/