test : all cases is passed

This commit is contained in:
Alex Duan 2023-05-16 19:30:35 +08:00
parent 89be6dbdeb
commit c47eb1867d
1 changed files with 15 additions and 13 deletions

View File

@ -94,7 +94,7 @@ class TDTestCase:
return False return False
# info # info
tdLog.info("check vgroups status successful.") tdLog.info("check vgroups status successfully.")
return True return True
@ -103,13 +103,13 @@ class TDTestCase:
def check_corrent(self): def check_corrent(self):
# check status # check status
status = False status = False
for i in range(50): for i in range(100):
if self.check_status_corrent(): if self.check_status_corrent():
status = True status = True
break break
else: else:
time.sleep(0.2) time.sleep(0.5)
tdLog.info(f" sleep 200ms retry {i} to check status again...") tdLog.info(f"sleep 500ms retry {i} to check status again...")
if status == False: if status == False:
tdLog.exit("check vgroups status failed, exit.") tdLog.exit("check vgroups status failed, exit.")
@ -224,6 +224,8 @@ class TDTestCase:
qfile = f"{del_dir}/qnode.json" qfile = f"{del_dir}/qnode.json"
if os.path.exists(qfile) == False: if os.path.exists(qfile) == False:
tdLog.exit(f"qnode restore failed. qnode.json is not exist. {qfile}") tdLog.exit(f"qnode restore failed. qnode.json is not exist. {qfile}")
else:
tdLog.info(f"check qnode.json restore ok. {qfile}")
# run # run