File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
package span
2
2
3
3
import (
4
- "github.com/segmentio/encoding/json"
5
- "io/ioutil"
6
4
"os"
7
5
"reflect"
8
6
"testing"
7
+
8
+ "github.com/segmentio/encoding/json"
9
9
)
10
10
11
- func filenames (fis []os.FileInfo ) (result []string ) {
12
- for _ , fi := range fis {
13
- result = append (result , fi .Name ())
11
+ func filenames (des []os.DirEntry ) (result []string ) {
12
+ for _ , de := range des {
13
+ result = append (result , de .Name ())
14
14
}
15
15
return
16
16
}
@@ -32,7 +32,7 @@ func TestUnfreezeFilterConfig(t *testing.T) {
32
32
if err := dec .Decode (& payload ); err != nil {
33
33
t .Errorf ("could not decode JSON: %v" , err )
34
34
}
35
- fis , err := ioutil .ReadDir (dir )
35
+ fis , err := os .ReadDir (dir )
36
36
if err != nil {
37
37
t .Errorf ("could not read dir: %v" , err )
38
38
}
You can’t perform that action at this time.
0 commit comments