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