mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
test/e2e: replace deprecated ioutil
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
This commit is contained in:
parent
a6f641b656
commit
d9e2583af1
@ -18,7 +18,7 @@ package output
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"regexp"
|
||||
"testing"
|
||||
@ -52,7 +52,7 @@ func TestGinkgoOutput(t *testing.T, expected TestResult, runSpecsArgs ...interfa
|
||||
ginkgo.RunSpecs(fakeT, "Logging Suite", runSpecsArgs...)
|
||||
|
||||
var actual reporters.JUnitTestSuites
|
||||
data, err := ioutil.ReadFile(junitFile)
|
||||
data, err := os.ReadFile(junitFile)
|
||||
require.NoError(t, err)
|
||||
err = xml.Unmarshal(data, &actual)
|
||||
require.NoError(t, err)
|
||||
|
Loading…
Reference in New Issue
Block a user