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