From eef503f31bd72bb21ff0ca0d775f7ebaa1917975 Mon Sep 17 00:00:00 2001 From: Thom Carlin Date: Mon, 28 Oct 2024 12:55:03 -0400 Subject: [PATCH] Add expect for errorchannel --- pkg/workceptor/workunitbase_test.go | 1 + 1 file changed, 1 insertion(+) 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 }() }