Misc ioutil deprecation adjustments

To make the tests pass.

* Replace io => os.ReadFile in magefile.go
* Adjust failing image test vs fs.DirEntry
* Adjust poller test

See #10732
This commit is contained in:
Bjørn Erik Pedersen 2023-03-01 09:34:13 +01:00
parent d453c12742
commit a669467d98
3 changed files with 15 additions and 3 deletions

View file

@ -7,7 +7,6 @@ import (
"bytes"
"errors"
"fmt"
"io"
"os"
"path"
"path/filepath"
@ -298,7 +297,7 @@ func TestCoverHTML() error {
if err := sh.Run(goexe, "test", "-coverprofile="+cover, "-covermode=count", pkg); err != nil {
return err
}
b, err := io.ReadFile(cover)
b, err := os.ReadFile(cover)
if err != nil {
if os.IsNotExist(err) {
continue