Merge pull request #24009 from taosdata/test/TD-27721

test: add coverage case
This commit is contained in:
Alex Duan 2023-12-19 10:14:16 +08:00 committed by GitHub
commit ecab6655a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:latest
WORKDIR /root

View File

@ -76,7 +76,8 @@ class TDTestCase:
new_tbname = ''.join(tbname1)
for sql in [f'`{dbname}`.`{new_tbname}`',f'`{new_tbname}`']:
tdSql.error(f'create table {sql} (ts timestamp,c0 int)')
tdSql.execute(f'drop database `{dbname}`')
tdSql.execute(f'trim database `{dbname}`')
tdSql.execute(f'drop database `{dbname}`')
def run(self):
self.db_name_check()
self.tb_name_check()