test:increase timeout of win testcase

This commit is contained in:
chenhaoran 2023-09-14 11:41:50 +08:00
parent 89a49a40a4
commit 7d4519cdf8
2 changed files with 5 additions and 4 deletions

View File

@ -67,7 +67,7 @@ set "FILE_NAME=testSuite.sim"
if "%1" == "-f" set "FILE_NAME=%2" if "%1" == "-f" set "FILE_NAME=%2"
set FILE_NAME=%FILE_NAME:/=\% set FILE_NAME=%FILE_NAME:/=\%
start cmd /k "timeout /t 600 /NOBREAK && taskkill /f /im tsim.exe & exit /b" start cmd /k "timeout /t 800 /NOBREAK && taskkill /f /im tsim.exe & exit /b"
rem echo FILE_NAME: %FILE_NAME% rem echo FILE_NAME: %FILE_NAME%
echo ExcuteCmd: %tsim% -c %CFG_DIR% -f %FILE_NAME% echo ExcuteCmd: %tsim% -c %CFG_DIR% -f %FILE_NAME%

View File

@ -166,22 +166,23 @@ class TDTestCase:
nodePort = 6030 + i*100 nodePort = 6030 + i*100
newTdSql=tdCom.newTdSql(port=nodePort) newTdSql=tdCom.newTdSql(port=nodePort)
tdDnodes[1].stoptaosd()
dataPath = tdDnodes[1].dataDir dataPath = tdDnodes[1].dataDir
os.system(f"rm -rf {dataPath}/*") os.system(f"rm -rf {dataPath}/*")
os.system(f"rm -rf {dataPath}/.runing") os.system(f"rm -rf {dataPath}/.runing")
tdDnodes[1].stoptaosd()
tdDnodes[1].starttaosd() tdDnodes[1].starttaosd()
sleep(5) sleep(5)
for i in range(6): for i in range(6):
nodePort = 6030 + i*100 nodePort = 6030 + i*100
newTdSql=tdCom.newTdSql(port=nodePort) newTdSql=tdCom.newTdSql(port=nodePort)
tdDnodes[0].stoptaosd()
dataPath = tdDnodes[0].dataDir dataPath = tdDnodes[0].dataDir
os.system(f"rm -rf {dataPath}/*") os.system(f"rm -rf {dataPath}/*")
os.system(f"rm -rf {dataPath}/.runing") os.system(f"rm -rf {dataPath}/.runing")
tdDnodes[0].stoptaosd()
tdDnodes[0].starttaosd() tdDnodes[0].starttaosd()
sleep(5) sleep(5)
for i in range(6): for i in range(6):