Skip to content

Commit bc514ff

Browse files
committed
chore: remove t.Fatal typo
1 parent a6ee859 commit bc514ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/integration/servicecidr/servicecidr_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
182182
// create a new ServiceCIDRs that overlaps the default one
183183
_, err = client.NetworkingV1beta1().ServiceCIDRs().Create(ctx, makeServiceCIDR("cidr1", cidr1, ""), metav1.CreateOptions{})
184184
if err != nil {
185-
t.Fatal((err))
185+
t.Fatal(err)
186186
}
187187
// Wait until is ready.
188188
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) {
197197
// we should be able to delete the ServiceCIDR despite it contains IP addresses as it overlaps with the default ServiceCIDR
198198
err = client.NetworkingV1beta1().ServiceCIDRs().Delete(ctx, "cidr1", metav1.DeleteOptions{})
199199
if err != nil {
200-
t.Fatal((err))
200+
t.Fatal(err)
201201
}
202202

203203
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) {
213213
// add a new ServiceCIDR with a new range
214214
_, err = client.NetworkingV1beta1().ServiceCIDRs().Create(ctx, makeServiceCIDR("cidr2", cidr2, ""), metav1.CreateOptions{})
215215
if err != nil {
216-
t.Fatal((err))
216+
t.Fatal(err)
217217
}
218218
// wait the allocator process the new ServiceCIDR
219219
// Wait until is ready.
@@ -239,7 +239,7 @@ func TestServiceCIDRDeletion(t *testing.T) {
239239
// add a new ServiceCIDR that overlaps the existing one
240240
_, err = client.NetworkingV1beta1().ServiceCIDRs().Create(ctx, makeServiceCIDR("cidr3", cidr3, ""), metav1.CreateOptions{})
241241
if err != nil {
242-
t.Fatal((err))
242+
t.Fatal(err)
243243
}
244244
// Wait until is ready.
245245
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) {
254254
// we should be able to delete the ServiceCIDR2 despite it contains IP addresses as it is contained on ServiceCIDR3
255255
err = client.NetworkingV1beta1().ServiceCIDRs().Delete(ctx, "cidr2", metav1.DeleteOptions{})
256256
if err != nil {
257-
t.Fatal((err))
257+
t.Fatal(err)
258258
}
259259

260260
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) {
270270
// serviceCIDR3 will not be able to be deleted until the IPAddress is removed
271271
err = client.NetworkingV1beta1().ServiceCIDRs().Delete(ctx, "cidr3", metav1.DeleteOptions{})
272272
if err != nil {
273-
t.Fatal((err))
273+
t.Fatal(err)
274274
}
275275
// Wait until is not ready.
276276
if err := wait.PollUntilContextTimeout(context.Background(), 250*time.Millisecond, 30*time.Second, false, func(ctx context.Context) (bool, error) {

0 commit comments

Comments
 (0)