mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
fix: concurrent map writes in load testing
This commit is contained in:
@@ -53,12 +53,13 @@ func (b *hrpBoomer) Run(testcases ...ITestCase) {
|
||||
|
||||
func (b *hrpBoomer) convertBoomerTask(testcase *TestCase) *boomer.Task {
|
||||
hrpRunner := NewRunner(nil).SetDebug(b.debug)
|
||||
runner := hrpRunner.newCaseRunner(testcase)
|
||||
config := testcase.Config.ToStruct()
|
||||
return &boomer.Task{
|
||||
Name: config.Name,
|
||||
Weight: config.Weight,
|
||||
Fn: func() {
|
||||
runner := hrpRunner.newCaseRunner(testcase)
|
||||
|
||||
testcaseSuccess := true // flag whole testcase result
|
||||
var transactionSuccess = true // flag current transaction result
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Release History
|
||||
|
||||
## v0.3.0 (2021-12-22)
|
||||
## v0.4.0 (2021-12-30)
|
||||
|
||||
- fix: concurrent map writes in load testing
|
||||
|
||||
## v0.3.0 (2021-12-24)
|
||||
|
||||
- feat: implement `transaction` mechanism for load test
|
||||
- feat: continue running next step when failure occurs with `--continue-on-failure` flag, default to failfast
|
||||
|
||||
Reference in New Issue
Block a user