Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove refs to deprecated io/ioutil #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2etests/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"testing"
Expand Down Expand Up @@ -127,7 +127,7 @@ func testE2E(t *testing.T, test testCase) {
defer func() {
logs, errLogs := jaegerContainer.Logs(ctx)
require.NoError(t, errLogs)
all, errLogs := ioutil.ReadAll(logs)
all, errLogs := io.ReadAll(logs)
require.NoError(t, errLogs)
fmt.Printf("Jaeger logs:\n---->\n%s<----\n\n", string(all))
jaegerContainer.Terminate(ctx)
Expand All @@ -146,7 +146,7 @@ func testE2E(t *testing.T, test testCase) {
// Jaeger traces itself so this request generates some spans
response, errHTTP := http.Get(fmt.Sprintf("http://localhost:%d/api/services", jaegerQueryPort.Int()))
require.NoError(t, errHTTP)
body, errHTTP := ioutil.ReadAll(response.Body)
body, errHTTP := io.ReadAll(response.Body)
require.NoError(t, errHTTP)
var r result
errHTTP = json.Unmarshal(body, &r)
Expand Down
Loading