diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-11-24 11:35:42 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-11-24 11:35:42 +0100 |
commit | 52dc82d5385c52076ac024cadf771caa79a5beda (patch) | |
tree | 9510b9003c94221b2e16398c453e1b4097245d59 /client/go/cmd/test.go | |
parent | a83829df8798c40d6b8d53f08f840a967c9bc722 (diff) |
use ioutil.ReadDir, which exists in go 1.15
Diffstat (limited to 'client/go/cmd/test.go')
-rw-r--r-- | client/go/cmd/test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/go/cmd/test.go b/client/go/cmd/test.go index 4c6d9ec265d..dc75ca22729 100644 --- a/client/go/cmd/test.go +++ b/client/go/cmd/test.go @@ -67,7 +67,7 @@ func runTests(rootPath string, target vespa.Target) (int, []string) { if stat, err := os.Stat(rootPath); err != nil { fatalErr(err, "Failed reading specified test path") } else if stat.IsDir() { - tests, err := os.ReadDir(rootPath) + tests, err := ioutil.ReadDir(rootPath) // TODO: Use os.ReadDir when >= 1.16 is required. if err != nil { fatalErr(err, "Failed reading specified test directory") } |