mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
add tests for fswatcher package
This commit is contained in:
@@ -39,7 +39,8 @@ func TestWalk(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
dirCh, errCh, doneCh := Walk(tt.root, tt.depth)
|
||||
w := &Walker{}
|
||||
dirCh, errCh, doneCh := w.Walk(tt.root, tt.depth)
|
||||
dirs, errs := getAllDirsAndErrors(dirCh, errCh)
|
||||
|
||||
if !reflect.DeepEqual(dirs, tt.result) {
|
||||
|
||||
Reference in New Issue
Block a user