@@ -182,7 +182,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
182
182
// create a new ServiceCIDRs that overlaps the default one
183
183
_ , err = client .NetworkingV1beta1 ().ServiceCIDRs ().Create (ctx , makeServiceCIDR ("cidr1" , cidr1 , "" ), metav1.CreateOptions {})
184
184
if err != nil {
185
- t .Fatal (( err ) )
185
+ t .Fatal (err )
186
186
}
187
187
// Wait until is ready.
188
188
if err := wait .PollUntilContextTimeout (context .Background (), 250 * time .Millisecond , 30 * time .Second , false , func (ctx context.Context ) (bool , error ) {
@@ -197,7 +197,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
197
197
// we should be able to delete the ServiceCIDR despite it contains IP addresses as it overlaps with the default ServiceCIDR
198
198
err = client .NetworkingV1beta1 ().ServiceCIDRs ().Delete (ctx , "cidr1" , metav1.DeleteOptions {})
199
199
if err != nil {
200
- t .Fatal (( err ) )
200
+ t .Fatal (err )
201
201
}
202
202
203
203
if err := wait .PollUntilContextTimeout (context .Background (), 250 * time .Millisecond , 30 * time .Second , false , func (ctx context.Context ) (bool , error ) {
@@ -213,7 +213,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
213
213
// add a new ServiceCIDR with a new range
214
214
_ , err = client .NetworkingV1beta1 ().ServiceCIDRs ().Create (ctx , makeServiceCIDR ("cidr2" , cidr2 , "" ), metav1.CreateOptions {})
215
215
if err != nil {
216
- t .Fatal (( err ) )
216
+ t .Fatal (err )
217
217
}
218
218
// wait the allocator process the new ServiceCIDR
219
219
// Wait until is ready.
@@ -239,7 +239,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
239
239
// add a new ServiceCIDR that overlaps the existing one
240
240
_ , err = client .NetworkingV1beta1 ().ServiceCIDRs ().Create (ctx , makeServiceCIDR ("cidr3" , cidr3 , "" ), metav1.CreateOptions {})
241
241
if err != nil {
242
- t .Fatal (( err ) )
242
+ t .Fatal (err )
243
243
}
244
244
// Wait until is ready.
245
245
if err := wait .PollUntilContextTimeout (context .Background (), 250 * time .Millisecond , 30 * time .Second , false , func (ctx context.Context ) (bool , error ) {
@@ -254,7 +254,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
254
254
// we should be able to delete the ServiceCIDR2 despite it contains IP addresses as it is contained on ServiceCIDR3
255
255
err = client .NetworkingV1beta1 ().ServiceCIDRs ().Delete (ctx , "cidr2" , metav1.DeleteOptions {})
256
256
if err != nil {
257
- t .Fatal (( err ) )
257
+ t .Fatal (err )
258
258
}
259
259
260
260
if err := wait .PollUntilContextTimeout (context .Background (), 250 * time .Millisecond , 30 * time .Second , false , func (ctx context.Context ) (bool , error ) {
@@ -270,7 +270,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
270
270
// serviceCIDR3 will not be able to be deleted until the IPAddress is removed
271
271
err = client .NetworkingV1beta1 ().ServiceCIDRs ().Delete (ctx , "cidr3" , metav1.DeleteOptions {})
272
272
if err != nil {
273
- t .Fatal (( err ) )
273
+ t .Fatal (err )
274
274
}
275
275
// Wait until is not ready.
276
276
if err := wait .PollUntilContextTimeout (context .Background (), 250 * time .Millisecond , 30 * time .Second , false , func (ctx context.Context ) (bool , error ) {
0 commit comments