fix: data racing by parsing config

This commit is contained in:
debugtalk
2022-04-12 22:40:58 +08:00
parent fcaa94f6f4
commit 4cf3798c9a
5 changed files with 47 additions and 51 deletions
+1 -1
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}
}