Skip to content

Commit 6feb7ba

Browse files
GODRIVER-3445 Continue updating
1 parent 2ef1591 commit 6feb7ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/spectest/spectest.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package spectest
88

99
import (
10-
"io/ioutil"
10+
"os"
1111
"path"
1212
"path/filepath"
1313
"strings"
@@ -22,7 +22,7 @@ func FindJSONFilesInDir(t *testing.T, dir string) []string {
2222

2323
files := make([]string, 0)
2424

25-
entries, err := ioutil.ReadDir(dir)
25+
entries, err := os.ReadDir(dir)
2626
require.NoError(t, err)
2727

2828
for _, entry := range entries {
@@ -36,6 +36,9 @@ func FindJSONFilesInDir(t *testing.T, dir string) []string {
3636
return files
3737
}
3838

39+
// TestPath will construct a path to a test file in the specifications git
40+
// submodule. The path will be relative to the current package so a depth should
41+
// be provided to indicate how many directories to go up.
3942
func TestPath(depth int, testDir string, subDirs ...string) string {
4043
const basePath = "testdata/specifications/source/"
4144

0 commit comments

Comments
 (0)