mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 13:59:37 +08:00
Merge branch 'session_refactor' into 'master'
feat: 优化errorCode报错, status code统一200 See merge request iesqa/httprunner!112
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package server
|
package server
|
||||||
|
|
||||||
type HttpResponse struct {
|
type HttpResponse struct {
|
||||||
Code int `json:"code"`
|
Code int `json:"errorCode"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
Result interface{} `json:"result,omitempty"`
|
Result interface{} `json:"result,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ func NewDriverSession() *DriverSession {
|
|||||||
client: &http.Client{
|
client: &http.Client{
|
||||||
Timeout: timeout,
|
Timeout: timeout,
|
||||||
},
|
},
|
||||||
maxRetry: 5,
|
maxRetry: 1,
|
||||||
}
|
}
|
||||||
session.Reset()
|
session.Reset()
|
||||||
return session
|
return session
|
||||||
|
|||||||
Reference in New Issue
Block a user