fix test failures

This commit is contained in:
Ping Xiao 2020-10-22 11:02:26 +08:00
parent d16caf3134
commit c2c6f1b800
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class TDTestCase:
tdSql.query("select * from t0") tdSql.query("select * from t0")
tdSql.checkRows(1) tdSql.checkRows(1)
tdSql.checkData(0, 0, 1) tdSql.checkData(0, 1, 1)
tdSql.query("select * from t1") tdSql.query("select * from t1")
tdSql.checkRows(5) tdSql.checkRows(5)

View File

@ -103,7 +103,7 @@ class TDTestCase:
tdSql.execute('alter table stb add tag tnc nchar(10)') tdSql.execute('alter table stb add tag tnc nchar(10)')
for tid in range(1, self.ntables + 1): for tid in range(1, self.ntables + 1):
tdSql.execute('alter table tb%d set tag tnc=\"%s\"' % tdSql.execute('alter table tb%d set tag tnc=\"%s\"' %
(tid, str(tid * 1.2))) (tid, str(tid + 1000000000)))
tdLog.info("insert %d data in to each %d tables" % (2, self.ntables)) tdLog.info("insert %d data in to each %d tables" % (2, self.ntables))
for rid in range(self.rowsPerTable + 1, self.rowsPerTable + 3): for rid in range(self.rowsPerTable + 1, self.rowsPerTable + 3):
sqlcmd = ['insert into'] sqlcmd = ['insert into']