Skip to content

Commit 5c56953

Browse files
committed
test: fix failing agent test
1 parent 8111250 commit 5c56953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ func TestAgentRun(t *testing.T) {
875875

876876
monitor := newMockMonitor()
877877
monitor.On("RecordRun", utils.OfTypeContext(), mock.AnythingOfType("agent.Run")).Once()
878-
monitor.On("RecordPlugin", utils.OfTypeContext(), mock.AnythingOfType("agent.PluginInfo"))
878+
monitor.On("RecordPlugin", utils.OfTypeContext(), mock.AnythingOfType("agent.PluginInfo")).Maybe()
879879
monitor.On("RecordSinkRetryCount", utils.OfTypeContext(), mock.AnythingOfType("agent.PluginInfo")).Maybe()
880880
defer monitor.AssertExpectations(t)
881881

0 commit comments

Comments
 (0)