From 425536d23fc43a9adb339a208d04b63dbb3191a9 Mon Sep 17 00:00:00 2001 From: Liu Jicong Date: Thu, 14 Apr 2022 15:30:36 +0800 Subject: [PATCH] allow forbid function in tmq test --- tests/test/c/tmqDemo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test/c/tmqDemo.c b/tests/test/c/tmqDemo.c index 3824471ea1..16f6c42d87 100644 --- a/tests/test/c/tmqDemo.c +++ b/tests/test/c/tmqDemo.c @@ -13,6 +13,8 @@ * along with this program. If not, see . */ +#define ALLOW_FORBID_FUNC + #include #include #include @@ -336,7 +338,6 @@ tmq_t* build_consumer() { tmq_conf_set(conf, "td.connect.pass", "taosdata"); tmq_conf_set(conf, "td.connect.db", g_stConfInfo.dbName); tmq_t* tmq = tmq_consumer_new1(conf, NULL, 0); - assert(tmq); tmq_conf_destroy(conf); return tmq; }