diff options
author | jiepeng <jiepengthegreat@126.com> | 2022-09-13 18:11:03 +0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-09-17 15:10:41 -0700 |
commit | b8900baf1ada72c24e58c487122c21e80858f52a (patch) | |
tree | 64c67fecd215d00e540a5d5c2030878b92cff981 /pkg/integration/deprecated/integration.go | |
parent | c81333fefe2f1e27ab2fcb6a0dc37d82ca47c711 (diff) |
remove deprecated calls
Diffstat (limited to 'pkg/integration/deprecated/integration.go')
-rw-r--r-- | pkg/integration/deprecated/integration.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/integration/deprecated/integration.go b/pkg/integration/deprecated/integration.go index 2f9b2ab8c..b292809c9 100644 --- a/pkg/integration/deprecated/integration.go +++ b/pkg/integration/deprecated/integration.go @@ -178,7 +178,7 @@ func RunTests( } // get the log file and print it - bytes, err := ioutil.ReadFile(filepath.Join(configDir, "development.log")) + bytes, err := os.ReadFile(filepath.Join(configDir, "development.log")) if err != nil { return err } @@ -324,7 +324,7 @@ func LoadTests(testDir string) ([]*IntegrationTest, error) { tests := make([]*IntegrationTest, len(paths)) for i, path := range paths { - data, err := ioutil.ReadFile(path) + data, err := os.ReadFile(path) if err != nil { return nil, err } @@ -406,7 +406,7 @@ func generateSnapshot(dir string) (string, error) { return nil } - bytes, err := ioutil.ReadFile(path) + bytes, err := os.ReadFile(path) if err != nil { return err } |