Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Dec 10, 2024
1 parent a900640 commit 91920ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion extension/agenthealth/extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ package agenthealth

import (
"context"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
"testing"

"github.com/stretchr/testify/assert"
"go.opentelemetry.io/collector/component/componenttest"
"go.uber.org/zap"

"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
)

func TestExtension(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions extension/agenthealth/handler/stats/provider/statuscode.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/amazon-contributing/opentelemetry-collector-contrib/extension/awsmiddleware"

"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
)

Expand Down
12 changes: 7 additions & 5 deletions extension/agenthealth/handler/stats/provider/statuscode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
package provider_test

import (
"sync"
"testing"

"github.com/stretchr/testify/assert"
"go.uber.org/zap"

"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/provider"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
"sync"
"testing"
)

func TestNewHandlers(t *testing.T) {
Expand Down Expand Up @@ -73,7 +75,7 @@ func TestSingleton(t *testing.T) {
}
}

func TestStatsResetRace(t *testing.T) {
func TestStatsResetRace(_ *testing.T) {
sp := provider.GetStatusCodeStatsProvider()

// Initialize the map in a thread-safe manner
Expand Down

0 comments on commit 91920ea

Please sign in to comment.