FileTreeWalk tests: do not remove failed directory from stack as leave is also called on failed dirs.

This commit is contained in:
Ilya Gorbunov
2015-12-04 15:47:04 +03:00
parent 162b152133
commit 4f2887df64
+1 -1
View File
@@ -271,7 +271,7 @@ class FileTreeWalkTest {
fun visitDirectoryFailed(dir: File, e: IOException) {
assertEquals(stack.last(), dir)
stack.removeAt(stack.lastIndex)
//stack.removeAt(stack.lastIndex)
failed.add(dir.name)
}
basedir.walkTopDown().enter(::beforeVisitDirectory).leave(::afterVisitDirectory).