fix: avoid data racing.

This commit is contained in:
徐聪
2022-01-04 17:13:17 +08:00
parent 57b6231d07
commit 70cf171ee3

View File

@@ -77,7 +77,7 @@ func (b *hrpBoomer) convertBoomerTask(testcase *TestCase) *boomer.Task {
log.Error().Err(err).Msg("copy config data failed")
}
if it := cfg.ParametersSetting.Iterator; it.HasNext() {
caseConfig.Variables = mergeVariables(it.Next(), cfg.Variables)
caseConfig.Variables = mergeVariables(it.Next(), caseConfig.Variables)
}
startTime := time.Now()
for index, step := range testcase.TestSteps {