mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: remove unnecessary redeclarations in for loops (#18440)
This commit is contained in:
@@ -1116,7 +1116,6 @@ func TestConfigMaps_updatePeers_nonexist(t *testing.T) {
|
||||
proto.CoordinateResponse_PeerUpdate_DISCONNECTED,
|
||||
proto.CoordinateResponse_PeerUpdate_LOST,
|
||||
} {
|
||||
k := k
|
||||
t.Run(k.String(), func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := testutil.Context(t, testutil.WaitShort)
|
||||
|
||||
@@ -64,7 +64,6 @@ func TestNode(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
p, err := tailnet.NodeToProto(&tc.node)
|
||||
|
||||
@@ -121,7 +121,6 @@ func TestTelemetryStore(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
telemetry, err := newTelemetryStore()
|
||||
|
||||
Reference in New Issue
Block a user