File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
const (
10
10
LabelAgentName = "agent_name"
11
- LabelUsername = "username"
12
11
LabelTemplateName = "template_name"
12
+ LabelUsername = "username"
13
13
LabelWorkspaceName = "workspace_name"
14
14
)
15
15
Original file line number Diff line number Diff line change @@ -3,11 +3,14 @@ package agentmetrics_test
3
3
import (
4
4
"testing"
5
5
6
- "github.com/coder/coder/v2/coderd/agentmetrics"
7
6
"github.com/stretchr/testify/require"
7
+
8
+ "github.com/coder/coder/v2/coderd/agentmetrics"
8
9
)
9
10
10
11
func TestValidateAggregationLabels (t * testing.T ) {
12
+ t .Parallel ()
13
+
11
14
tests := []struct {
12
15
name string
13
16
labels []string
@@ -36,6 +39,8 @@ func TestValidateAggregationLabels(t *testing.T) {
36
39
}
37
40
38
41
for _ , tc := range tests {
42
+ tc := tc
43
+
39
44
t .Run (tc .name , func (t * testing.T ) {
40
45
t .Parallel ()
41
46
You can’t perform that action at this time.
0 commit comments