mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-30 21:09:36 +08:00
fix: step request elapsed timming should contain ContentTransfer part
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Release History
|
# Release History
|
||||||
|
|
||||||
|
## v4.1.0-alpha (2022-05-07)
|
||||||
|
|
||||||
|
**go version**
|
||||||
|
|
||||||
|
- fix: step request elapsed timming should contain ContentTransfer part
|
||||||
|
|
||||||
## v4.0.0 (2022-05-05)
|
## v4.0.0 (2022-05-05)
|
||||||
|
|
||||||
**go version**
|
**go version**
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v4.0.0
|
v4.1.0-alpha
|
||||||
@@ -329,8 +329,6 @@ func runStepRequest(r *SessionRunner, step *TStep) (stepResult *StepResult, err
|
|||||||
} else {
|
} else {
|
||||||
resp, err = r.hrpRunner.httpClient.Do(rb.req)
|
resp, err = r.hrpRunner.httpClient.Do(rb.req)
|
||||||
}
|
}
|
||||||
|
|
||||||
stepResult.Elapsed = time.Since(start).Milliseconds()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return stepResult, errors.Wrap(err, "do request failed")
|
return stepResult, errors.Wrap(err, "do request failed")
|
||||||
}
|
}
|
||||||
@@ -356,6 +354,7 @@ func runStepRequest(r *SessionRunner, step *TStep) (stepResult *StepResult, err
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stepResult.Elapsed = time.Since(start).Milliseconds()
|
||||||
if r.HTTPStatOn() {
|
if r.HTTPStatOn() {
|
||||||
// resp.Body has been ReadAll
|
// resp.Body has been ReadAll
|
||||||
httpStat.Finish()
|
httpStat.Finish()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
__version__ = "v4.0.0"
|
__version__ = "v4.1.0-alpha"
|
||||||
__description__ = "One-stop solution for HTTP(S) testing."
|
__description__ = "One-stop solution for HTTP(S) testing."
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "httprunner"
|
name = "httprunner"
|
||||||
version = "v4.0.0"
|
version = "v4.1.0-alpha"
|
||||||
description = "One-stop solution for HTTP(S) testing."
|
description = "One-stop solution for HTTP(S) testing."
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
Reference in New Issue
Block a user