mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
change: rename LoadFile to LoadFileObject
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
func LoadSwaggerCase(path string) (*hrp.TestCase, error) {
|
||||
// load swagger file
|
||||
caseSwagger := new(spec.Swagger)
|
||||
err := hrp.LoadFile(path, caseSwagger)
|
||||
err := hrp.LoadFileObject(path, caseSwagger)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "load swagger file failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user