fix:[TS-5156]case error
This commit is contained in:
parent
9e018e8e58
commit
78f991b2c9
|
@ -222,10 +222,10 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("select * from information_schema.ins_columns where db_name ='information_schema'")
|
||||
tdLog.info(len(tdSql.queryResult))
|
||||
tdSql.checkEqual(True, len(tdSql.queryResult) in range(261, 269))
|
||||
tdSql.checkEqual(True, len(tdSql.queryResult) in range(261, 271))
|
||||
|
||||
tdSql.query("select * from information_schema.ins_columns where db_name ='performance_schema'")
|
||||
tdSql.checkEqual(54, len(tdSql.queryResult))
|
||||
tdSql.checkEqual(56, len(tdSql.queryResult))
|
||||
|
||||
def ins_dnodes_check(self):
|
||||
tdSql.execute('drop database if exists db2')
|
||||
|
|
|
@ -85,7 +85,7 @@ class TDTestCase:
|
|||
time.sleep(4) # wait for heart beat
|
||||
|
||||
tdSql.query(f'show subscriptions;')
|
||||
sub = tdSql.getData(0, 4);
|
||||
sub = tdSql.getData(0, 6);
|
||||
print(sub)
|
||||
if not sub.startswith("tsdb"):
|
||||
tdLog.exit(f"show subscriptions error")
|
||||
|
@ -196,7 +196,7 @@ class TDTestCase:
|
|||
|
||||
time.sleep(4) # wait for heart beat
|
||||
tdSql.query(f'show subscriptions;')
|
||||
sub = tdSql.getData(0, 4);
|
||||
sub = tdSql.getData(0, 6);
|
||||
print(sub)
|
||||
if not sub.startswith("tsdb"):
|
||||
tdLog.exit(f"show subscriptions error")
|
||||
|
@ -306,7 +306,7 @@ class TDTestCase:
|
|||
|
||||
time.sleep(4) # wait for heart beat
|
||||
tdSql.query(f'show subscriptions;')
|
||||
sub = tdSql.getData(0, 4);
|
||||
sub = tdSql.getData(0, 6);
|
||||
print(sub)
|
||||
if not sub.startswith("tsdb"):
|
||||
tdLog.exit(f"show subscriptions error")
|
||||
|
@ -416,7 +416,7 @@ class TDTestCase:
|
|||
|
||||
time.sleep(4) # wait for heart beat
|
||||
tdSql.query(f'show subscriptions;')
|
||||
sub = tdSql.getData(0, 4);
|
||||
sub = tdSql.getData(0, 6);
|
||||
print(sub)
|
||||
if not sub.startswith("tsdb"):
|
||||
tdLog.exit(f"show subscriptions error")
|
||||
|
@ -517,7 +517,7 @@ class TDTestCase:
|
|||
consumer.close()
|
||||
|
||||
tdSql.query(f'show subscriptions;')
|
||||
sub = tdSql.getData(0, 4);
|
||||
sub = tdSql.getData(0, 6);
|
||||
print(sub)
|
||||
if not sub.startswith("tsdb"):
|
||||
tdLog.exit(f"show subscriptions error")
|
||||
|
|
|
@ -598,12 +598,12 @@ class TDTestCase:
|
|||
tdSql.query(f'show consumers')
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkData(0, 1, 'g1')
|
||||
tdSql.checkData(0, 4, 't2')
|
||||
tdSql.checkData(0, 6, 't2')
|
||||
tdSql.execute(f'drop consumer group g1 on t1')
|
||||
tdSql.query(f'show consumers')
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkData(0, 1, 'g1')
|
||||
tdSql.checkData(0, 4, 't2')
|
||||
tdSql.checkData(0, 6, 't2')
|
||||
|
||||
tdSql.query(f'show subscriptions')
|
||||
tdSql.checkRows(1)
|
||||
|
@ -641,7 +641,7 @@ class TDTestCase:
|
|||
tdSql.query(f'show consumers')
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkData(0, 1, 'g1')
|
||||
tdSql.checkData(0, 4, 't2')
|
||||
tdSql.checkData(0, 6, 't2')
|
||||
|
||||
tdSql.execute(f'insert into t4 using st tags(3) values(now, 1)')
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue