mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: remove unnecessary redeclarations in for loops (#18440)
This commit is contained in:
@ -1517,7 +1517,6 @@ func TestSSH(t *testing.T) {
|
||||
pty.ExpectMatchContext(ctx, "ping pong")
|
||||
|
||||
for i, sock := range sockets {
|
||||
i := i
|
||||
// Start the listener on the "local machine".
|
||||
l, err := net.Listen("unix", sock.local)
|
||||
require.NoError(t, err)
|
||||
@ -1641,7 +1640,6 @@ func TestSSH(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range tcs {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
Reference in New Issue
Block a user