Skip to content

Commit 9b16a3b

Browse files
committed
Fixing lints
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 92be1d6 commit 9b16a3b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

coderd/agentmetrics/labels.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
const (
1010
LabelAgentName = "agent_name"
11-
LabelUsername = "username"
1211
LabelTemplateName = "template_name"
12+
LabelUsername = "username"
1313
LabelWorkspaceName = "workspace_name"
1414
)
1515

coderd/agentmetrics/labels_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ package agentmetrics_test
33
import (
44
"testing"
55

6-
"github.com/coder/coder/v2/coderd/agentmetrics"
76
"github.com/stretchr/testify/require"
7+
8+
"github.com/coder/coder/v2/coderd/agentmetrics"
89
)
910

1011
func TestValidateAggregationLabels(t *testing.T) {
12+
t.Parallel()
13+
1114
tests := []struct {
1215
name string
1316
labels []string
@@ -36,6 +39,8 @@ func TestValidateAggregationLabels(t *testing.T) {
3639
}
3740

3841
for _, tc := range tests {
42+
tc := tc
43+
3944
t.Run(tc.name, func(t *testing.T) {
4045
t.Parallel()
4146

0 commit comments

Comments
 (0)