Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matoval committed Nov 15, 2024
1 parent 83c5bb9 commit a4aa195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/workceptor/workunitbase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,14 @@ func TestMonitorLocalStatus(t *testing.T) {
eventCh := make(chan fsnotify.Event, 1)
mockWatcher.EXPECT().EventChannel().Return(eventCh).AnyTimes()
go func() { eventCh <- *tc.fsNotifyEvent }()

errorCh := make(chan error, 1)
mockWatcher.EXPECT().ErrorChannel().Return(errorCh).AnyTimes()
}

go bwu.MonitorLocalStatus()
time.Sleep(tc.sleepDuration)

if tc.fsNotifyEvent != nil {
logOutput, err := os.ReadFile(logFilePath)
if err != nil && len(logOutput) == 0 {
Expand Down

0 comments on commit a4aa195

Please sign in to comment.