Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions test/e2e/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
"testing"
Expand Down Expand Up @@ -104,7 +104,7 @@ func metricsRequest(t *testing.T, routeForMetrics string) string {
}

defer resp.Body.Close()
bytes, err = ioutil.ReadAll(resp.Body)
bytes, err = io.ReadAll(resp.Body)
if err != nil {
t.Logf("error reading metrics response: %s\n", err)
return false, err
Expand Down
3 changes: 1 addition & 2 deletions tools/import-verifier/import-verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -303,7 +302,7 @@ func mergePackages(existingPackages, currPackages []Package) []Package {
}

func loadImportRestrictions(configFile string) ([]ImportRestriction, error) {
config, err := ioutil.ReadFile(configFile)
config, err := os.ReadFile(configFile)
if err != nil {
return nil, fmt.Errorf("failed to load configuration from %s: %v", configFile, err)
}
Expand Down