io/ioutil package has been deprecated in Go 1.16 that replaces io/ioutil functions
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
This commit is contained in:
@@ -20,7 +20,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
@@ -48,7 +47,7 @@ func TestNewBundle(t *testing.T) {
|
||||
|
||||
for i, tc := range tests {
|
||||
t.Run(strconv.Itoa(i), func(t *testing.T) {
|
||||
dir, err := ioutil.TempDir("", "test-new-bundle")
|
||||
dir, err := os.MkdirTemp("", "test-new-bundle")
|
||||
require.NoError(t, err, "failed to create test directory")
|
||||
defer os.RemoveAll(dir)
|
||||
work := filepath.Join(dir, "work")
|
||||
|
Reference in New Issue
Block a user