From 388e89096c301666fbe2018136bccf81b0ec0b67 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 26 Jan 2024 15:51:37 +0800 Subject: [PATCH] fix:test case error --- source/common/src/tgrant.c | 10 +--------- tests/parallel_test/cases.task | 1 + .../system-test/0-others/subscribe_stream_privilege.py | 4 ++-- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/source/common/src/tgrant.c b/source/common/src/tgrant.c index 6251131005..f212d71362 100644 --- a/source/common/src/tgrant.c +++ b/source/common/src/tgrant.c @@ -18,14 +18,6 @@ #ifndef _GRANT -int32_t grantCheck(EGrantType grant) { - if(taosGetTimestampMs() < 1706254434000) { - uError("receivee no expired"); - return 0; - } else{ - uError("receivee expired"); - return -1; - } -} +int32_t grantCheck(EGrantType grant) {return TSDB_CODE_SUCCESS;} #endif \ No newline at end of file diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index 79bec1ec76..97f4e533db 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -292,6 +292,7 @@ fi ,,n,system-test,python3 ./test.py -f 0-others/timeRangeWise.py -N 3 ,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/delete_check.py ,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/test_hot_refresh_configurations.py +,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/subscribe_stream_privilege.py ,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/insert_double.py ,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/alter_database.py diff --git a/tests/system-test/0-others/subscribe_stream_privilege.py b/tests/system-test/0-others/subscribe_stream_privilege.py index 9656d0e5e8..d85d87dc3a 100644 --- a/tests/system-test/0-others/subscribe_stream_privilege.py +++ b/tests/system-test/0-others/subscribe_stream_privilege.py @@ -172,8 +172,8 @@ class TDTestCase: def run(self): self.prepare_data() self.create_user() - #self.consumeTest() - self.streamTest() + self.consumeTest() + # self.streamTest() def stop(self): tdSql.close()