Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man committed Dec 18, 2023
1 parent 099a6c1 commit 1b5649b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion comp/logs/agent/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ type Mock interface {
Component

SetSources(sources *sources.LogSources)
AsComponent() Component
}

// Module defines the fx options for this component.
Expand Down
4 changes: 0 additions & 4 deletions comp/logs/agent/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,3 @@ func (a *mockLogsAgent) Flush(ctx context.Context) {
func (a *mockLogsAgent) GetPipelineProvider() pipeline.Provider {
return nil
}

func (a *mockLogsAgent) AsComponent() Component {
return a
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestGetPayload(t *testing.T) {

ic := getTestInventoryChecks(t,
optional.NewOption[collector.Collector](mockColl),
optional.NewOption[logagent.Component](logsAgent.AsComponent()),
optional.NewOption[logagent.Component](logsAgent),
overrides,
)

Expand Down

0 comments on commit 1b5649b

Please sign in to comment.