From a751f750224edb7cdcbbe55e07b33207fe532da6 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 26 Apr 2023 21:23:39 +0800 Subject: [PATCH] fix: fix syntax error on windows. --- source/client/test/clientTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/client/test/clientTests.cpp b/source/client/test/clientTests.cpp index 65f115618f..b9062fc8ff 100644 --- a/source/client/test/clientTests.cpp +++ b/source/client/test/clientTests.cpp @@ -1060,9 +1060,9 @@ TEST(clientCase, sub_tb_test) { tmq_conf_t* conf = tmq_conf_new(); - int64_t ts = taosGetTimestampMs(); + int32_t ts = taosGetTimestampMs()%INT32_MAX; char consumerGroupid[128] = {0}; - sprintf(consumerGroupid, "group_id_%"PRId64, ts); + sprintf(consumerGroupid, "group_id_%d", ts); tmq_conf_set(conf, "enable.auto.commit", "true"); tmq_conf_set(conf, "auto.commit.interval.ms", "2000"); @@ -1100,7 +1100,7 @@ TEST(clientCase, sub_tb_test) { if (pRes) { char buf[128]; -// const char* topicName = tmq_get_topic_name(pRes); + const char* topicName = tmq_get_topic_name(pRes); // const char* dbName = tmq_get_db_name(pRes); // int32_t vgroupId = tmq_get_vgroup_id(pRes); // -- GitLab