mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: remove unnecessary redeclarations in for loops (#18440)
This commit is contained in:
@ -1065,7 +1065,6 @@ func TestWorkspaceAgentListeningPorts(t *testing.T) {
|
||||
},
|
||||
},
|
||||
} {
|
||||
tc := tc
|
||||
t.Run("OK_"+tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@ -1340,7 +1339,6 @@ func TestWorkspaceAgentContainers(t *testing.T) {
|
||||
},
|
||||
},
|
||||
} {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@ -1692,7 +1690,6 @@ func TestWorkspaceAgent_LifecycleState(t *testing.T) {
|
||||
}
|
||||
//nolint:paralleltest // No race between setting the state and getting the workspace.
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(string(tt.state), func(t *testing.T) {
|
||||
state, err := agentsdk.ProtoFromLifecycleState(tt.state)
|
||||
if tt.wantErr {
|
||||
|
Reference in New Issue
Block a user