Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
okankoAMZ committed Jul 23, 2024
1 parent 8d7cf3a commit d7f0653
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions service/configprovider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (
"path/filepath"
"testing"

"github.com/aws/amazon-cloudwatch-agent/service/defaultcomponents"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/component"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter"
"github.com/aws/amazon-cloudwatch-agent/service/defaultcomponents"
)

const (
Expand All @@ -27,8 +28,8 @@ func TestConfigProvider(t *testing.T) {
factories, err := defaultcomponents.Factories()
require.NoError(t, err)
logger, err := zap.NewProduction()
assert.NoError(t,err)
actualProvider, err := Get(filepath.Join("../../translator/tocwconfig/sampleConfig", "config_with_env.yaml"),logger)
assert.NoError(t, err)
actualProvider, err := Get(filepath.Join("../../translator/tocwconfig/sampleConfig", "config_with_env.yaml"), logger)
assert.NoError(t, err)
actualCfg, err := actualProvider.Get(context.Background(), factories)
assert.NoError(t, err)
Expand Down

0 comments on commit d7f0653

Please sign in to comment.