mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/victoria-metrics: check for error arg passed to filepath.Walk callback
This commit is contained in:
parent
6320a19a8c
commit
75ad47a43c
1 changed files with 3 additions and 0 deletions
|
@ -300,6 +300,9 @@ func readIn(readFor string, t *testing.T, insertTime time.Time) []test {
|
|||
s := newSuite(t)
|
||||
var tt []test
|
||||
s.noError(filepath.Walk(filepath.Join(testFixturesDir, readFor), func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if filepath.Ext(path) != ".json" {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue