[TD-3921] <test> add case for develop branch
This commit is contained in:
parent
54f7d58a9c
commit
bd19a926f3
|
@ -67,14 +67,15 @@ class TDTestCase:
|
||||||
self.queryRows = len(self.queryResult)
|
self.queryRows = len(self.queryResult)
|
||||||
self.queryCols = len(tdSql.cursor.description)
|
self.queryCols = len(tdSql.cursor.description)
|
||||||
# tdLog.info("sql: %s, try to retrieve %d rows,get %d rows" % (sql, expectRows, self.queryRows))
|
# tdLog.info("sql: %s, try to retrieve %d rows,get %d rows" % (sql, expectRows, self.queryRows))
|
||||||
if self.queryRows >= timeout:
|
if self.queryRows >= 1:
|
||||||
|
tdSql.query(sql)
|
||||||
|
tdSql.checkData(0, 5, None)
|
||||||
return (self.queryRows, i)
|
return (self.queryRows, i)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
tdLog.info(f"sql: {sql} except raise {exception}, actually raise {repr(e)} ")
|
tdLog.exit(f"sql: {sql} except raise {exception}, actually raise {repr(e)} ")
|
||||||
else:
|
# else:
|
||||||
tdLog.exit(f"sql: {sql} except raise {exception}, actually not")
|
# tdLog.exit(f"sql: {sql} except raise {exception}, actually not")
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
tdSql.execute("drop database if exists dbcq")
|
tdSql.execute("drop database if exists dbcq")
|
||||||
|
|
Loading…
Reference in New Issue