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/