Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercoll committed May 10, 2024
1 parent 6c4d2e5 commit 08397a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion receiver/podmanreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func createDefaultReceiverConfig() component.Config {
}

func createMetricsReceiver(
ctx context.Context,
_ context.Context,
params receiver.CreateSettings,
config component.Config,
consumer consumer.Metrics,
Expand Down
13 changes: 0 additions & 13 deletions receiver/podmanreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/component/componenttest"
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/pdata/pmetric"
"go.opentelemetry.io/collector/receiver/receivertest"
"go.opentelemetry.io/collector/receiver/scraperhelper"
"go.uber.org/zap"
Expand Down Expand Up @@ -99,21 +97,10 @@ func (c mockClient) ping(context.Context) error {
return nil
}

type mockConsumer chan pmetric.Metrics

func (c mockClient) list(context.Context, url.Values) ([]container, error) {
return []container{{ID: "c1", Image: "localimage"}}, nil
}

func (c mockClient) events(context.Context, url.Values) (<-chan event, <-chan error) {
return nil, nil
}

func (m mockConsumer) Capabilities() consumer.Capabilities {
return consumer.Capabilities{}
}

func (m mockConsumer) ConsumeMetrics(_ context.Context, md pmetric.Metrics) error {
m <- md
return nil
}

0 comments on commit 08397a8

Please sign in to comment.