use factory method in walker test

This commit is contained in:
Dominic Breuker
2018-03-16 09:40:13 +01:00
parent 72bbfac3e0
commit 1e67dc332b

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)