Skip to content

Commit

Permalink
Add expect for errorchannel
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat committed Oct 28, 2024
1 parent 4171c1f commit eef503f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/workceptor/workunitbase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }()
}

Expand Down

0 comments on commit eef503f

Please sign in to comment.