mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-05-02 23:36:54 +00:00
chore: remove refs to deprecated io/ioutil
This commit is contained in:
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
package metrics
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -121,7 +121,7 @@ func TestPrometheusMetricsParsingAndMatching(t *testing.T) {
|
||||
|
||||
for _, test := range testCases {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
b, err := ioutil.ReadFile(test.metricsTextPath)
|
||||
b, err := os.ReadFile(test.metricsTextPath)
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error reading file %s: %v", test.metricsTextPath, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user