refactor: move websocket related logic to step_websocket

This commit is contained in:
lilong.129
2024-08-20 16:14:11 +08:00
parent b9171ca772
commit b43bda4ba3
3 changed files with 44 additions and 63 deletions

View File

@@ -89,8 +89,6 @@ func (s *StepTestCaseWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepRe
return stepResult, err
}
sessionRunner := caseRunner.NewSession()
// need to inherit some information from current session
sessionRunner.inheritConnection(r)
start := time.Now()
// run referenced testcase with step variables