Merge pull request #1295 from xucong053/bugfix

fix: panic when config didn't exist in testcase file
This commit is contained in:
debugtalk
2022-05-13 18:30:41 +08:00
committed by GitHub

View File

@@ -60,6 +60,9 @@ func (path *TestCasePath) ToTestCase() (*TestCase, error) {
if err != nil {
return nil, err
}
if tc.Config == nil {
return nil, errors.New("incorrect testcase file format, expected config in file")
}
err = tc.makeCompat()
if err != nil {