Skip to content

Commit bce38dc

Browse files
committed
refactor deprecated io/ioutil package
1 parent d8e348d commit bce38dc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

test/e2e/authorisation_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"encoding/json"
66
"fmt"
77
"io"
8-
"io/ioutil"
98
"net/http"
109
"strings"
1110

@@ -941,7 +940,7 @@ var _ = describe("Authorization tests [Authorization] [RBAC] [Zalando]", func()
941940
rsp, err := client.Do(req)
942941
Expect(err).NotTo(HaveOccurred())
943942

944-
body, err := ioutil.ReadAll(rsp.Body)
943+
body, err := io.ReadAll(rsp.Body)
945944
Expect(err).NotTo(HaveOccurred())
946945

947946
verifyResponse(rsp.StatusCode, body, subtest)

test/e2e/util.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ var (
5252
pollLongTimeout = 5 * time.Minute
5353
)
5454

55-
// type wait.ConditionWithContextFunc func(context.Context) (done bool, err error)
56-
// PollUntilContextTimeout(ctx, interval, timeout time.Duration, immediate bool, condition wait.ConditionWithContextFunc)
5755
func waitForRouteGroup(cs rgclient.ZalandoInterface, name, ns string, d time.Duration) (string, error) {
5856
var addr string
5957
err := wait.PollUntilContextTimeout(context.TODO(), 10*time.Second, d, false, func(context.Context) (done bool, err error) {

0 commit comments

Comments
 (0)