Commit e73b5ece authored by liyuanhong's avatar liyuanhong

优化了压力测试脚本2

parent 32643254
......@@ -61,7 +61,6 @@ def flvFilePushTest():
threadInfo = test.getThreadInfo()
threadInfoPull = test.getThreadInfoPull()
else:
time.sleep(30)
if len(threadInfo["threadObj"]) == 0 and len(threadInfoPull["threadObj"]) == 0:
test = getPressTestObj()
threadInfo = test.getThreadInfo()
......@@ -72,6 +71,7 @@ def flvFilePushTest():
logger.info("剩余拉流线程:" + str(len(threadInfoPull["threadObj"])))
threadInfo = test.getThreadInfo()
threadInfoPull = test.getThreadInfoPull()
time.sleep(30)
flvFilePushTest()
logger.info("压力测试结束!!!!!!")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment