8
8
)
9
9
10
10
func TestValidateGatewayControllerName (t * testing.T ) {
11
+ t .Parallel ()
11
12
tests := []struct {
12
13
name string
13
14
value string
@@ -51,7 +52,9 @@ func TestValidateGatewayControllerName(t *testing.T) {
51
52
}
52
53
53
54
for _ , test := range tests {
55
+ test := test
54
56
t .Run (test .name , func (t * testing.T ) {
57
+ t .Parallel ()
55
58
g := NewWithT (t )
56
59
57
60
err := validateGatewayControllerName (test .value )
@@ -66,6 +69,7 @@ func TestValidateGatewayControllerName(t *testing.T) {
66
69
}
67
70
68
71
func TestValidateResourceName (t * testing.T ) {
72
+ t .Parallel ()
69
73
tests := []struct {
70
74
name string
71
75
value string
@@ -114,7 +118,9 @@ func TestValidateResourceName(t *testing.T) {
114
118
}
115
119
116
120
for _ , test := range tests {
121
+ test := test
117
122
t .Run (test .name , func (t * testing.T ) {
123
+ t .Parallel ()
118
124
g := NewWithT (t )
119
125
120
126
err := validateResourceName (test .value )
@@ -129,6 +135,7 @@ func TestValidateResourceName(t *testing.T) {
129
135
}
130
136
131
137
func TestValidateNamespaceName (t * testing.T ) {
138
+ t .Parallel ()
132
139
tests := []struct {
133
140
name string
134
141
value string
@@ -177,7 +184,9 @@ func TestValidateNamespaceName(t *testing.T) {
177
184
}
178
185
179
186
for _ , test := range tests {
187
+ test := test
180
188
t .Run (test .name , func (t * testing.T ) {
189
+ t .Parallel ()
181
190
g := NewWithT (t )
182
191
183
192
err := validateNamespaceName (test .value )
@@ -192,6 +201,7 @@ func TestValidateNamespaceName(t *testing.T) {
192
201
}
193
202
194
203
func TestParseNamespacedResourceName (t * testing.T ) {
204
+ t .Parallel ()
195
205
tests := []struct {
196
206
name string
197
207
value string
@@ -239,7 +249,9 @@ func TestParseNamespacedResourceName(t *testing.T) {
239
249
}
240
250
241
251
for _ , test := range tests {
252
+ test := test
242
253
t .Run (test .name , func (t * testing.T ) {
254
+ t .Parallel ()
243
255
g := NewWithT (t )
244
256
245
257
nsName , err := parseNamespacedResourceName (test .value )
@@ -256,6 +268,7 @@ func TestParseNamespacedResourceName(t *testing.T) {
256
268
}
257
269
258
270
func TestValidateQualifiedName (t * testing.T ) {
271
+ t .Parallel ()
259
272
tests := []struct {
260
273
name string
261
274
value string
@@ -304,7 +317,9 @@ func TestValidateQualifiedName(t *testing.T) {
304
317
}
305
318
306
319
for _ , test := range tests {
320
+ test := test
307
321
t .Run (test .name , func (t * testing.T ) {
322
+ t .Parallel ()
308
323
g := NewWithT (t )
309
324
310
325
err := validateQualifiedName (test .value )
@@ -318,6 +333,7 @@ func TestValidateQualifiedName(t *testing.T) {
318
333
}
319
334
320
335
func TestValidateURL (t * testing.T ) {
336
+ t .Parallel ()
321
337
tests := []struct {
322
338
name string
323
339
url string
@@ -366,7 +382,9 @@ func TestValidateURL(t *testing.T) {
366
382
}
367
383
368
384
for _ , tc := range tests {
385
+ tc := tc
369
386
t .Run (tc .name , func (t * testing.T ) {
387
+ t .Parallel ()
370
388
g := NewWithT (t )
371
389
372
390
err := validateURL (tc .url )
@@ -380,6 +398,7 @@ func TestValidateURL(t *testing.T) {
380
398
}
381
399
382
400
func TestValidateIP (t * testing.T ) {
401
+ t .Parallel ()
383
402
tests := []struct {
384
403
name string
385
404
expSubMsg string
@@ -406,7 +425,9 @@ func TestValidateIP(t *testing.T) {
406
425
}
407
426
408
427
for _ , tc := range tests {
428
+ tc := tc
409
429
t .Run (tc .name , func (t * testing.T ) {
430
+ t .Parallel ()
410
431
g := NewWithT (t )
411
432
412
433
err := validateIP (tc .ip )
@@ -420,6 +441,7 @@ func TestValidateIP(t *testing.T) {
420
441
}
421
442
422
443
func TestValidateEndpoint (t * testing.T ) {
444
+ t .Parallel ()
423
445
tests := []struct {
424
446
name string
425
447
endp string
@@ -473,7 +495,9 @@ func TestValidateEndpoint(t *testing.T) {
473
495
}
474
496
475
497
for _ , tc := range tests {
498
+ tc := tc
476
499
t .Run (tc .name , func (t * testing.T ) {
500
+ t .Parallel ()
477
501
g := NewWithT (t )
478
502
479
503
err := validateEndpoint (tc .endp )
@@ -487,6 +511,7 @@ func TestValidateEndpoint(t *testing.T) {
487
511
}
488
512
489
513
func TestValidatePort (t * testing.T ) {
514
+ t .Parallel ()
490
515
tests := []struct {
491
516
name string
492
517
port int
@@ -510,7 +535,9 @@ func TestValidatePort(t *testing.T) {
510
535
}
511
536
512
537
for _ , tc := range tests {
538
+ tc := tc
513
539
t .Run (tc .name , func (t * testing.T ) {
540
+ t .Parallel ()
514
541
g := NewWithT (t )
515
542
516
543
err := validatePort (tc .port )
@@ -524,6 +551,7 @@ func TestValidatePort(t *testing.T) {
524
551
}
525
552
526
553
func TestEnsureNoPortCollisions (t * testing.T ) {
554
+ t .Parallel ()
527
555
g := NewWithT (t )
528
556
529
557
g .Expect (ensureNoPortCollisions (9113 , 8081 )).To (Succeed ())
0 commit comments