mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user