mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 14:29:44 +08:00
optimize websocket step
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user