Skip to content

Commit 49f46a0

Browse files
refactor: minor fixes in tests
1 parent 996bee7 commit 49f46a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/provisionerjobs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929

3030
// TestProvisionerJob_MultipleJobsAndProvisioners tests OrganizationProvisionerJob single job endpoint by repeatedly
3131
// calling it for every jobID and comparing with expected result.
32+
// nolint:paralleltest
3233
func TestProvisionerJob_MultipleJobsAndProvisioners(t *testing.T) {
3334
t.Parallel()
3435

@@ -41,7 +42,6 @@ func TestProvisionerJob_MultipleJobsAndProvisioners(t *testing.T) {
4142
}
4243

4344
for _, tc := range testCases {
44-
tc := tc // Capture loop variable to avoid data races
4545
t.Run(tc.Name, func(t *testing.T) {
4646
t.Parallel()
4747
now := dbtime.Now()
@@ -159,6 +159,7 @@ func TestProvisionerJob_MultipleJobsAndProvisioners(t *testing.T) {
159159

160160
// TestProvisionerJobs_MultipleJobsAndProvisioners tests OrganizationProvisionerJobs multiple job endpoint by
161161
// calling it once and comparing with expected result.
162+
// nolint:paralleltest
162163
func TestProvisionerJobs_MultipleJobsAndProvisioners(t *testing.T) {
163164
t.Parallel()
164165

@@ -171,7 +172,6 @@ func TestProvisionerJobs_MultipleJobsAndProvisioners(t *testing.T) {
171172
}
172173

173174
for _, tc := range testCases {
174-
tc := tc // Capture loop variable to avoid data races
175175
t.Run(tc.Name, func(t *testing.T) {
176176
t.Parallel()
177177
now := dbtime.Now()

0 commit comments

Comments
 (0)