fix invalid memory address or nil pointer dereference when calling TestSuite RetrieveFeatures (#566)
Co-authored-by: Cornel Damian <cornel.damian@adswizz.com>
Этот коммит содержится в:
родитель
fd3e0d5f9c
коммит
10407bc5a9
1 изменённых файлов: 4 добавлений и 0 удалений
4
run.go
4
run.go
|
@ -361,6 +361,10 @@ func (ts TestSuite) RetrieveFeatures() ([]*models.Feature, error) {
|
|||
}
|
||||
}
|
||||
|
||||
if ts.Options.FS == nil {
|
||||
ts.Options.FS = storage.FS{}
|
||||
}
|
||||
|
||||
if len(opt.Paths) == 0 {
|
||||
inf, err := func() (fs.FileInfo, error) {
|
||||
file, err := opt.FS.Open("features")
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче