From e481d4bcd8e82a3768111dedf8fb2e292189c89c Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Mon, 17 Oct 2022 16:30:03 +0800 Subject: [PATCH] chore: update test case to support alter database minrows --- tests/script/general/db/alter_option.sim | 2 +- tests/script/general/db/topic1.sim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/script/general/db/alter_option.sim b/tests/script/general/db/alter_option.sim index 813af58379..52777dc08c 100644 --- a/tests/script/general/db/alter_option.sim +++ b/tests/script/general/db/alter_option.sim @@ -9,7 +9,7 @@ sleep 2000 sql connect print ============= create database -sql create database db cache 2 blocks 4 days 10 keep 20 minRows 300 maxRows 400 ctime 120 precision 'ms' comp 2 wal 1 replica 1 +sql create database db cache 2 blocks 4 days 10 keep 20 minRows 300 maxRows 1200 ctime 120 precision 'ms' comp 2 wal 1 replica 1 sql show databases if $data00 != db then return -1 diff --git a/tests/script/general/db/topic1.sim b/tests/script/general/db/topic1.sim index 3670d4db3c..2feb2ff82f 100644 --- a/tests/script/general/db/topic1.sim +++ b/tests/script/general/db/topic1.sim @@ -472,7 +472,8 @@ sql_error alter topic db blocks 10001 print ============== step minrows sql_error alter database db minrows 1 sql alter database db minrows 100 -sql alter database db minrows 1000 +sql alter database db minrows 399 +sql_error alter database db minrows 400 sql_error alter topic db minrows 1 sql_error alter topic db minrows 100 -- GitLab