fs/test: fix erratic test

This commit is contained in:
Nick Craig-Wood 2024-07-13 15:36:54 +01:00
parent 532a0818f7
commit d9bd6f35f2

View file

@ -163,7 +163,7 @@ func (ls *listDirs) WalkFn(dir string, entries fs.DirEntries, err error) error {
// Walk does the walk and tests the expectations
func (ls *listDirs) Walk() {
err := walk(context.Background(), nil, "", ls.includeAll, ls.maxLevel, ls.WalkFn, ls.ListDir)
assert.Equal(ls.t, ls.finalError, err)
assert.True(ls.t, errors.Is(ls.finalError, err))
ls.IsFinished()
}