@@ -13,6 +13,7 @@ import (
13
13
)
14
14
15
15
func TestServicePortsChangedPredicate_Update (t * testing.T ) {
16
+ t .Parallel ()
16
17
testcases := []struct {
17
18
objectOld client.Object
18
19
objectNew client.Object
@@ -227,7 +228,9 @@ func TestServicePortsChangedPredicate_Update(t *testing.T) {
227
228
p := ServicePortsChangedPredicate {}
228
229
229
230
for _ , tc := range testcases {
231
+ tc := tc
230
232
t .Run (tc .msg , func (t * testing.T ) {
233
+ t .Parallel ()
231
234
g := NewWithT (t )
232
235
update := p .Update (event.UpdateEvent {
233
236
ObjectOld : tc .objectOld ,
@@ -240,6 +243,7 @@ func TestServicePortsChangedPredicate_Update(t *testing.T) {
240
243
}
241
244
242
245
func TestServicePortsChangedPredicate (t * testing.T ) {
246
+ t .Parallel ()
243
247
g := NewWithT (t )
244
248
245
249
p := GatewayServicePredicate {}
@@ -250,6 +254,7 @@ func TestServicePortsChangedPredicate(t *testing.T) {
250
254
}
251
255
252
256
func TestGatewayServicePredicate_Update (t * testing.T ) {
257
+ t .Parallel ()
253
258
testcases := []struct {
254
259
objectOld client.Object
255
260
objectNew client.Object
@@ -440,7 +445,9 @@ func TestGatewayServicePredicate_Update(t *testing.T) {
440
445
p := GatewayServicePredicate {NSName : types.NamespacedName {Namespace : "nginx-gateway" , Name : "nginx" }}
441
446
442
447
for _ , tc := range testcases {
448
+ tc := tc
443
449
t .Run (tc .msg , func (t * testing.T ) {
450
+ t .Parallel ()
444
451
g := NewWithT (t )
445
452
update := p .Update (event.UpdateEvent {
446
453
ObjectOld : tc .objectOld ,
@@ -453,6 +460,7 @@ func TestGatewayServicePredicate_Update(t *testing.T) {
453
460
}
454
461
455
462
func TestGatewayServicePredicate (t * testing.T ) {
463
+ t .Parallel ()
456
464
g := NewWithT (t )
457
465
458
466
p := GatewayServicePredicate {}
0 commit comments