From f5f56ae280c529def4c9e2d4e233512001e2c49b Mon Sep 17 00:00:00 2001 From: tomchon Date: Mon, 28 Jun 2021 18:50:11 +0800 Subject: [PATCH] [TD-4132]:modify taosdump-testcase of column length --- tests/pytest/tools/taosdumpTest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pytest/tools/taosdumpTest.py b/tests/pytest/tools/taosdumpTest.py index 0f94635ed8..8765e8c5d5 100644 --- a/tests/pytest/tools/taosdumpTest.py +++ b/tests/pytest/tools/taosdumpTest.py @@ -114,18 +114,18 @@ class TDTestCase: tdSql.execute("create stable st12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9(ts timestamp, c1 int, c2 nchar(10)) tags(t1 int, t2 binary(10))") tdSql.error("create stable st_12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9(ts timestamp, c1 int, c2 nchar(10)) tags(t1 int, t2 binary(10))") tdSql.execute("create stable st(ts timestamp, c1 int, c2 nchar(10)) tags(t1 int, t2 binary(10))") - tdSql.execute("create stable st1(ts timestamp, c1 int, col2_012345678901234567890123456789012345678901234567890123456789 nchar(10)) tags(t1 int, t2 binary(10))") + tdSql.error("create stable st1(ts timestamp, c1 int, col2_012345678901234567890123456789012345678901234567890123456789 nchar(10)) tags(t1 int, t2 binary(10))") tdSql.execute("select * from db12312313231231321312312312_323.st12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9") tdSql.error("create table t0_12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9 using st tags(1, 'beijing')") tdSql.query("show stables") - tdSql.checkRows(3) + tdSql.checkRows(2) os.system("taosdump --databases db12312313231231321312312312_323 -o /taosdumptest/tmp1") tdSql.execute("drop database db12312313231231321312312312_323") os.system("taosdump -i /taosdumptest/tmp1") tdSql.execute("use db12312313231231321312312312_323") tdSql.query("show stables") - tdSql.checkRows(3) + tdSql.checkRows(2) os.system("rm -rf /taosdumptest/tmp1") os.system("rm -rf /taosdumptest/tmp2") os.system("rm -rf ./dump_result.txt") -- GitLab