diff --git a/pkg/workceptor/workunitbase_test.go b/pkg/workceptor/workunitbase_test.go index 19ff3bae9..05d9e1a8e 100644 --- a/pkg/workceptor/workunitbase_test.go +++ b/pkg/workceptor/workunitbase_test.go @@ -364,6 +364,7 @@ func TestMonitorLocalStatus(t *testing.T) { if tc.fsNotifyEvent != nil { eventCh := make(chan fsnotify.Event, 1) mockWatcher.EXPECT().EventChannel().Return(eventCh).AnyTimes() + mockWatcher.EXPECT().ErrorChannel().Return(eventCh).AnyTimes() go func() { eventCh <- *tc.fsNotifyEvent }() }