app/victoria-metrics: check for error arg passed to filepath.Walk callback

This commit is contained in:
Aliaksandr Valialkin 2020-01-27 20:56:45 +02:00
parent 6320a19a8c
commit 75ad47a43c

View file

@ -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
}