@@ -8,13 +8,14 @@ import (
8
8
"testing"
9
9
"time"
10
10
11
- "cdr.dev/slog/sloggers/slogtest"
12
- "github.com/coder/coder/v2/coderd/agentmetrics"
13
11
"github.com/prometheus/client_golang/prometheus"
14
12
dto"github.com/prometheus/client_model/go"
15
13
"github.com/stretchr/testify/assert"
16
14
"github.com/stretchr/testify/require"
17
15
16
+ "cdr.dev/slog/sloggers/slogtest"
17
+ "github.com/coder/coder/v2/coderd/agentmetrics"
18
+
18
19
agentproto"github.com/coder/coder/v2/agent/proto"
19
20
"github.com/coder/coder/v2/coderd/prometheusmetrics"
20
21
"github.com/coder/coder/v2/cryptorand"
@@ -318,7 +319,7 @@ func TestLabelsAggregation(t *testing.T) {
318
319
aggregateOn []string
319
320
}{
320
321
{
321
- name :"label aggregations not specified, keep all (high cardinality, defaultbehaviour )" ,
322
+ name :"label aggregations not specified, keep all (high cardinality, defaultbehavior )" ,
322
323
given : []statCollection {
323
324
{
324
325
labels :testLabels ,
@@ -561,6 +562,8 @@ func TestLabelsAggregation(t *testing.T) {
561
562
}
562
563
563
564
for _ ,tc := range tests {
565
+ tc := tc
566
+
564
567
t .Run (tc .name ,func (t * testing.T ) {
565
568
t .Parallel ()
566
569