fix: data racing by parsing config

This commit is contained in:
debugtalk
2022-04-12 21:47:04 +08:00
parent c6286a222a
commit f07d96cb5e
5 changed files with 47 additions and 51 deletions

View File

@@ -38,7 +38,7 @@ func (s *StepThinkTime) Run(r *SessionRunner) (*StepResult, error) {
Success: true,
}
cfg := r.testCase.Config.ThinkTimeSetting
cfg := r.parsedConfig.ThinkTimeSetting
if cfg == nil {
cfg = &ThinkTimeConfig{thinkTimeDefault, nil, 0}
}