mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 17:59:36 +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 {
|
func (b *hrpBoomer) convertBoomerTask(testcase *TestCase) *boomer.Task {
|
||||||
hrpRunner := NewRunner(nil).SetDebug(b.debug)
|
hrpRunner := NewRunner(nil).SetDebug(b.debug)
|
||||||
runner := hrpRunner.newCaseRunner(testcase)
|
|
||||||
config := testcase.Config.ToStruct()
|
config := testcase.Config.ToStruct()
|
||||||
return &boomer.Task{
|
return &boomer.Task{
|
||||||
Name: config.Name,
|
Name: config.Name,
|
||||||
Weight: config.Weight,
|
Weight: config.Weight,
|
||||||
Fn: func() {
|
Fn: func() {
|
||||||
|
runner := hrpRunner.newCaseRunner(testcase)
|
||||||
|
|
||||||
testcaseSuccess := true // flag whole testcase result
|
testcaseSuccess := true // flag whole testcase result
|
||||||
var transactionSuccess = true // flag current transaction result
|
var transactionSuccess = true // flag current transaction result
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Release History
|
# 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: implement `transaction` mechanism for load test
|
||||||
- feat: continue running next step when failure occurs with `--continue-on-failure` flag, default to failfast
|
- feat: continue running next step when failure occurs with `--continue-on-failure` flag, default to failfast
|
||||||
|
|||||||
Reference in New Issue
Block a user