refactor: merge step variables with session variables

This commit is contained in:
debugtalk
2022-10-18 20:56:46 +08:00
parent 23abc56a82
commit 59dd2c39d4
5 changed files with 13 additions and 25 deletions
+1 -5
View File
@@ -51,6 +51,7 @@ func (s *StepTestCaseWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepRe
StepType: stepTypeTestCase,
Success: false,
}
stepVariables := s.step.Variables
defer func() {
// update testcase summary
@@ -59,11 +60,6 @@ func (s *StepTestCaseWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepRe
}
}()
stepVariables, err := r.MergeStepVariables(s.step.Variables)
if err != nil {
return stepResult, err
}
stepTestCase := s.step.TestCase.(*TestCase)
// copy testcase to avoid data racing