mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-06 20:32:44 +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
|
||||
|
||||
type HttpResponse struct {
|
||||
Code int `json:"code"`
|
||||
Code int `json:"errorCode"`
|
||||
Message string `json:"message"`
|
||||
Result interface{} `json:"result,omitempty"`
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ func NewDriverSession() *DriverSession {
|
||||
client: &http.Client{
|
||||
Timeout: timeout,
|
||||
},
|
||||
maxRetry: 5,
|
||||
maxRetry: 1,
|
||||
}
|
||||
session.Reset()
|
||||
return session
|
||||
|
||||
Reference in New Issue
Block a user