dirtree: make tests more reliable

This commit is contained in:
Nick Craig-Wood 2019-07-02 16:29:40 +01:00
parent a1cfe61ffd
commit 9cafeeb4b6
1 changed files with 1 additions and 0 deletions

View File

@ -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/