diff options
author | adrianvillin <avillin@cisco.com> | 2024-01-24 01:45:59 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-01-26 16:59:02 +0000 |
commit | 707210c636095d10df66f4a9d047860b155be782 (patch) | |
tree | 5edb5b693b8d838a86ec41ff9a49867cfd01a1bb /extras/hs-test/hst_suite.go | |
parent | f1acfc00ee6643b7a55af3a1267365a97eec63ca (diff) |
hs-test: updated golang and packages
ioutil.ReadFile is deprecated, replaced with os.ReadFile
Type: test
Change-Id: I9f8075796d05d47ea4dddd7e986026a267a7fe0c
Signed-off-by: adrianvillin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/hst_suite.go')
-rw-r--r-- | extras/hs-test/hst_suite.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extras/hs-test/hst_suite.go b/extras/hs-test/hst_suite.go index f0ebdca5919..12a66e44d46 100644 --- a/extras/hs-test/hst_suite.go +++ b/extras/hs-test/hst_suite.go @@ -4,7 +4,6 @@ import ( "errors" "flag" "fmt" - "io/ioutil" "os" "os/exec" "strings" @@ -209,7 +208,7 @@ func (s *HstSuite) getTransientContainerByName(name string) *Container { } func (s *HstSuite) loadContainerTopology(topologyName string) { - data, err := ioutil.ReadFile(containerTopologyDir + topologyName + ".yaml") + data, err := os.ReadFile(containerTopologyDir + topologyName + ".yaml") if err != nil { s.T().Fatalf("read error: %v", err) } @@ -237,7 +236,7 @@ func (s *HstSuite) loadContainerTopology(topologyName string) { } func (s *HstSuite) loadNetworkTopology(topologyName string) { - data, err := ioutil.ReadFile(networkTopologyDir + topologyName + ".yaml") + data, err := os.ReadFile(networkTopologyDir + topologyName + ".yaml") if err != nil { s.T().Fatalf("read error: %v", err) } |