mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: remove unnecessary redeclarations in for loops (#18440)
This commit is contained in:
@ -297,7 +297,6 @@ func TestSearchWorkspace(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range testCases {
|
||||
c := c
|
||||
t.Run(c.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
// TODO: Replace this with the mock database.
|
||||
@ -382,7 +381,6 @@ func TestSearchAudit(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range testCases {
|
||||
c := c
|
||||
t.Run(c.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
// Do not use a real database, this is only used for an
|
||||
@ -550,7 +548,6 @@ func TestSearchUsers(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range testCases {
|
||||
c := c
|
||||
t.Run(c.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
values, errs := searchquery.Users(c.Query)
|
||||
@ -622,7 +619,6 @@ func TestSearchTemplates(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range testCases {
|
||||
c := c
|
||||
t.Run(c.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
// Do not use a real database, this is only used for an
|
||||
|
Reference in New Issue
Block a user