fix: step request elapsed timming should contain ContentTransfer part

This commit is contained in:
debugtalk
2022-05-07 18:51:31 +08:00
parent d4891e344f
commit 2e0e48bffb
5 changed files with 10 additions and 5 deletions

View File

@@ -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**

View File

@@ -1 +1 @@
v4.0.0 v4.1.0-alpha

View File

@@ -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()

View File

@@ -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."

View File

@@ -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"