use factory method in walker test

This commit is contained in:
Dominic Breuker committed 2018-03-16 09:40:13 +01:00
1 parent 72bbfac3e0
commit 1e67dc332b
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ func TestWalk(t *testing.T) {
}
for i, tt := range tests {
w := &Walker{}
w := NewWalker()
dirCh, errCh, doneCh := w.Walk(tt.root, tt.depth)
dirs, errs := getAllDirsAndErrors(dirCh, errCh)