fix: error of concurrent map writes occurred while uploading in boom mode

This commit is contained in:
xucong053
2022-06-30 23:29:16 +08:00
parent 14dc566eea
commit ee8cfcae86
4 changed files with 37 additions and 19 deletions

View File

@@ -144,6 +144,10 @@ func (path *TestCasePath) ToTestCase() (*TestCase, error) {
step: step,
})
} else if step.Request != nil {
// init upload
if step.Request.Upload != nil {
initUpload(step)
}
testCase.TestSteps = append(testCase.TestSteps, &StepRequestWithOptionalArgs{
step: step,
})