@@ -3268,8 +3268,6 @@ func TestGRPCProviderServerConfigureProvider(t *testing.T) {
3268
3268
}
3269
3269
3270
3270
for name , testCase := range testCases {
3271
- name , testCase := name , testCase
3272
-
3273
3271
t .Run (name , func (t * testing.T ) {
3274
3272
t .Parallel ()
3275
3273
@@ -3389,8 +3387,6 @@ func TestGRPCProviderServerGetMetadata(t *testing.T) {
3389
3387
}
3390
3388
3391
3389
for name , testCase := range testCases {
3392
- name , testCase := name , testCase
3393
-
3394
3390
t .Run (name , func (t * testing.T ) {
3395
3391
t .Parallel ()
3396
3392
@@ -3470,8 +3466,6 @@ func TestGRPCProviderServerMoveResourceState(t *testing.T) {
3470
3466
}
3471
3467
3472
3468
for name , testCase := range testCases {
3473
- name , testCase := name , testCase
3474
-
3475
3469
t .Run (name , func (t * testing.T ) {
3476
3470
t .Parallel ()
3477
3471
@@ -3953,8 +3947,6 @@ func TestGRPCProviderServerValidateResourceTypeConfig(t *testing.T) {
3953
3947
}
3954
3948
3955
3949
for name , testCase := range testCases {
3956
- name , testCase := name , testCase
3957
-
3958
3950
t .Run (name , func (t * testing.T ) {
3959
3951
t .Parallel ()
3960
3952
@@ -4838,8 +4830,6 @@ func TestReadResource(t *testing.T) {
4838
4830
}
4839
4831
4840
4832
for name , testCase := range testCases {
4841
- name , testCase := name , testCase
4842
-
4843
4833
t .Run (name , func (t * testing.T ) {
4844
4834
t .Parallel ()
4845
4835
resp , err := testCase .server .ReadResource (context .Background (), testCase .req )
@@ -5560,8 +5550,6 @@ func TestPlanResourceChange(t *testing.T) {
5560
5550
}
5561
5551
5562
5552
for name , testCase := range testCases {
5563
- name , testCase := name , testCase
5564
-
5565
5553
t .Run (name , func (t * testing.T ) {
5566
5554
t .Parallel ()
5567
5555
@@ -5871,8 +5859,6 @@ func TestApplyResourceChange(t *testing.T) {
5871
5859
}
5872
5860
5873
5861
for name , testCase := range testCases {
5874
- name , testCase := name , testCase
5875
-
5876
5862
t .Run (name , func (t * testing.T ) {
5877
5863
t .Parallel ()
5878
5864
@@ -6014,8 +6000,6 @@ func TestApplyResourceChange_ResourceFuncs(t *testing.T) {
6014
6000
}
6015
6001
6016
6002
for name , testCase := range testCases {
6017
- name , testCase := name , testCase
6018
-
6019
6003
t .Run (name , func (t * testing.T ) {
6020
6004
t .Parallel ()
6021
6005
@@ -6148,7 +6132,6 @@ func TestApplyResourceChange_bigint(t *testing.T) {
6148
6132
}
6149
6133
6150
6134
for _ , testCase := range testCases {
6151
- testCase := testCase
6152
6135
t .Run (testCase .Description , func (t * testing.T ) {
6153
6136
server := NewGRPCProviderServer (& Provider {
6154
6137
ResourcesMap : map [string ]* Resource {
@@ -6376,8 +6359,6 @@ func TestApplyResourceChange_ResourceFuncs_writeOnly(t *testing.T) {
6376
6359
}
6377
6360
6378
6361
for name , testCase := range testCases {
6379
- name , testCase := name , testCase
6380
-
6381
6362
t .Run (name , func (t * testing.T ) {
6382
6363
t .Parallel ()
6383
6364
@@ -6710,8 +6691,6 @@ func TestImportResourceState(t *testing.T) {
6710
6691
}
6711
6692
6712
6693
for name , testCase := range testCases {
6713
- name , testCase := name , testCase
6714
-
6715
6694
t .Run (name , func (t * testing.T ) {
6716
6695
t .Parallel ()
6717
6696
resp , err := testCase .server .ImportResourceState (context .Background (), testCase .req )
@@ -7366,8 +7345,6 @@ func TestReadDataSource(t *testing.T) {
7366
7345
}
7367
7346
7368
7347
for name , testCase := range testCases {
7369
- name , testCase := name , testCase
7370
-
7371
7348
t .Run (name , func (t * testing.T ) {
7372
7349
t .Parallel ()
7373
7350
resp , err := testCase .server .ReadDataSource (context .Background (), testCase .req )
@@ -8138,7 +8115,6 @@ func TestStopContext_grpc(t *testing.T) {
8138
8115
}
8139
8116
8140
8117
for _ , testCase := range testCases {
8141
- testCase := testCase
8142
8118
t .Run (testCase .Description , func (t * testing.T ) {
8143
8119
server := NewGRPCProviderServer (& Provider {
8144
8120
ResourcesMap : map [string ]* Resource {
@@ -8253,7 +8229,6 @@ func TestStopContext_stop(t *testing.T) {
8253
8229
}
8254
8230
8255
8231
for _ , testCase := range testCases {
8256
- testCase := testCase
8257
8232
t .Run (testCase .Description , func (t * testing.T ) {
8258
8233
server := NewGRPCProviderServer (& Provider {
8259
8234
ResourcesMap : map [string ]* Resource {
@@ -8371,7 +8346,6 @@ func TestStopContext_stopReset(t *testing.T) {
8371
8346
}
8372
8347
8373
8348
for _ , testCase := range testCases {
8374
- testCase := testCase
8375
8349
t .Run (testCase .Description , func (t * testing.T ) {
8376
8350
server := NewGRPCProviderServer (& Provider {
8377
8351
ResourcesMap : map [string ]* Resource {
0 commit comments