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;
}