optimize websocket step

This commit is contained in:
buyuxiang
2022-07-19 11:21:33 +08:00
parent 85d43e0483
commit a347a381b3
6 changed files with 278 additions and 119 deletions
+3
View File
@@ -267,6 +267,9 @@ func (r *HRPRunner) newCaseRunner(testcase *TestCase) (*testCaseRunner, error) {
return nil, errors.Wrap(err, "parse testcase config failed")
}
// init websocket params
initWebSocket(testcase)
// set testcase timeout in seconds
if runner.testCase.Config.Timeout != 0 {
timeout := time.Duration(runner.testCase.Config.Timeout*1000) * time.Millisecond