From 97f8305ca980969674337f1f4b8e6ddd1c510b21 Mon Sep 17 00:00:00 2001 From: bryanchang0603 Date: Thu, 10 Jun 2021 11:34:24 +0800 Subject: [PATCH] [TD-4658] minor fix --- tests/pytest/alter/alter_keep.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/pytest/alter/alter_keep.py b/tests/pytest/alter/alter_keep.py index cf02edff35..a734c660e8 100644 --- a/tests/pytest/alter/alter_keep.py +++ b/tests/pytest/alter/alter_keep.py @@ -35,6 +35,7 @@ class TDTestCase: tdSql.execute('drop database db') tdSql.error('create database db keep ') + tdSql.error('create database db keep 0') tdSql.error('create database db keep 10,20') tdSql.error('create database db keep 10,20,30') tdSql.error('create database db keep 20,30,40,50') @@ -47,9 +48,12 @@ class TDTestCase: tdSql.checkData(0,7,'100') tdSql.error('alter database db keep ') + tdSql.error('alter database db keep 0') tdSql.error('alter database db keep 10,20') tdSql.error('alter database db keep 10,20,30') tdSql.error('alter database db keep 20,30,40,50') + tdSql.query('show databases') + tdSql.checkData(0,7,'100') def alterKeepEnterprise(self): tdLog.notice('running Keep Test, Enterprise Version') @@ -79,7 +83,7 @@ class TDTestCase: tdSql.error('create database db keep 100,50') tdSql.error('create database db keep 100,40,50') tdSql.error('create database db keep 20,100,50') - tdSql.error('create database db keep 100,100,50') + tdSql.error('create database db keep 50,60,20') #testing keep parameter during alter tdSql.execute('create database db') @@ -102,6 +106,9 @@ class TDTestCase: tdSql.error('alter database db keep 100,50') tdSql.error('alter database db keep 100,40,50') tdSql.error('alter database db keep 20,100,50') + tdSql.error('alter database db keep 50,60,20') + tdSql.query('show databases') + tdSql.checkData(0,7,'100,200,300') def run(self): -- GitLab