mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: decrease the maximum simulation duration to ten minutes
This commit is contained in:
@@ -271,8 +271,8 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
currentVideo.LiveType = screenResult.imageResult.LiveType
|
currentVideo.LiveType = screenResult.imageResult.LiveType
|
||||||
}
|
}
|
||||||
|
|
||||||
// simulation watch feed video
|
// simulation watch live video
|
||||||
simulationPlayDuration := math.Min(float64(currentVideo.PlayDuration), 7200000)
|
simulationPlayDuration := math.Min(float64(currentVideo.PlayDuration), 300000)
|
||||||
sleepStrict(swipeFinishTime, int64(simulationPlayDuration))
|
sleepStrict(swipeFinishTime, int64(simulationPlayDuration))
|
||||||
|
|
||||||
screenResult.Video = currentVideo
|
screenResult.Video = currentVideo
|
||||||
@@ -327,7 +327,7 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
dExt.cacheStepData.screenResults[time.Now().String()] = screenResult
|
dExt.cacheStepData.screenResults[time.Now().String()] = screenResult
|
||||||
|
|
||||||
// simulation watch feed video
|
// simulation watch feed video
|
||||||
simulationPlayDuration := math.Min(float64(currentVideo.PlayDuration), 7200000)
|
simulationPlayDuration := math.Min(float64(currentVideo.PlayDuration), 600000)
|
||||||
sleepStrict(swipeFinishTime, int64(simulationPlayDuration))
|
sleepStrict(swipeFinishTime, int64(simulationPlayDuration))
|
||||||
screenResult.TotalElapsed = time.Since(swipeFinishTime).Milliseconds()
|
screenResult.TotalElapsed = time.Since(swipeFinishTime).Milliseconds()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user