remove obsolete comments about test parallelization

This commit is contained in:
Chris Piraino 2020-06-23 13:48:30 -04:00
parent abe2ca94c5
commit 58eb3710fc
1 changed files with 4 additions and 16 deletions

View File

@ -77,10 +77,7 @@ func TestIngressConfigEntry_Normalize(t *testing.T) {
},
}
for _, test := range cases {
// We explicitly copy the variable for the range statement so that can run
// tests in parallel.
tc := test
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
err := tc.entry.Normalize()
require.NoError(t, err)
@ -436,10 +433,7 @@ func TestIngressConfigEntry_Validate(t *testing.T) {
},
}
for _, test := range cases {
// We explicitly copy the variable for the range statement so that can run
// tests in parallel.
tc := test
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
err := tc.entry.Validate()
if tc.expectErr != "" {
@ -546,10 +540,7 @@ func TestTerminatingConfigEntry_Validate(t *testing.T) {
},
}
for _, test := range cases {
// We explicitly copy the variable for the range statement so that can run
// tests in parallel.
tc := test
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
err := tc.entry.Validate()
@ -610,10 +601,7 @@ func TestGatewayService_Addresses(t *testing.T) {
},
}
for _, test := range cases {
// We explicitly copy the variable for the range statement so that can run
// tests in parallel.
tc := test
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
addresses := tc.input.Addresses(tc.argument)
require.ElementsMatch(t, tc.expected, addresses)