Skip to content

Commit

Permalink
fix: os.Readfile is not supported in 1.14
Browse files Browse the repository at this point in the history
Go 1.14 does not support os.Readfile(), use ioutil.Readfile() instead.
  • Loading branch information
rebornplusplus committed Jul 19, 2023
1 parent b38f0d0 commit 03d5a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/cli/cmd_enter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (s *PebbleSuite) TestEnterSubCommandWaits(c *C) {
subCmdExecTime, err := time.Parse(layout, strings.TrimSpace(stdout))
c.Check(err, IsNil)

svcOut, err := os.ReadFile(filepath.Join(s.pebbleDir, "stat"))
svcOut, err := ioutil.ReadFile(filepath.Join(s.pebbleDir, "stat"))
c.Check(err, IsNil)
svcStartTime, err := time.Parse(layout, strings.TrimSpace(string(svcOut)))
c.Check(err, IsNil)
Expand Down

0 comments on commit 03d5a68

Please sign in to comment.