Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #247 from inosato/replace-ioutil
Browse files Browse the repository at this point in the history
Remove ioutil
  • Loading branch information
SuperQ authored Jul 30, 2022
2 parents b489240 + 5defcf9 commit 2cc962d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions haproxy_exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package main
import (
"bufio"
"io"
"io/ioutil"
"net"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -344,7 +343,7 @@ func TestFilterServerMetrics(t *testing.T) {
}

func BenchmarkExtract(b *testing.B) {
config, err := ioutil.ReadFile("test/haproxy.csv")
config, err := os.ReadFile("test/haproxy.csv")
if err != nil {
b.Fatalf("could not read config file: %v", err.Error())
}
Expand Down

0 comments on commit 2cc962d

Please sign in to comment.