[TD-3921] <fix> fix the case for new python connector
This commit is contained in:
parent
19c185c8cb
commit
a35c422793
|
@ -67,7 +67,9 @@ class TDTestCase:
|
|||
self.queryRows = len(self.queryResult)
|
||||
self.queryCols = len(tdSql.cursor.description)
|
||||
# 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)
|
||||
time.sleep(1)
|
||||
except Exception as e:
|
||||
|
@ -75,6 +77,8 @@ class TDTestCase:
|
|||
else:
|
||||
tdLog.exit(f"sql: {sql} except raise {exception}, actually not")
|
||||
|
||||
tdSql.checkData(0, 5, None)
|
||||
|
||||
|
||||
def run(self):
|
||||
tdSql.execute("drop database if exists dbcq")
|
||||
|
|
Loading…
Reference in New Issue