Skip to content

Commit

Permalink
Use filepath.Glob
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Mar 5, 2024
1 parent 76ab9b5 commit 8bca8b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/test/netspoc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"sort"
"strings"
Expand Down Expand Up @@ -101,7 +102,7 @@ type descr struct {
}

func runTestFiles(t *testing.T, tc test) {
dataFiles := testtxt.GetFiles("../testdata/" + tc.dir)
dataFiles, _ := filepath.Glob("../testdata/" + tc.dir + "/*.t")
for _, file := range dataFiles {
file := file // capture range variable
t.Run(path.Base(file), func(t *testing.T) {
Expand Down

0 comments on commit 8bca8b2

Please sign in to comment.