提交 ce681dfd 编写于 作者: E Easyfan Zheng 提交者: Sijie Guo

Merge Request for #4871: change unittest code for support LLVM. (#4878)

 MacOS clang/llvm compiler imcompatible code in Unit test case BasicEndToEndTest.cc #4871
上级 5bf319e4
......@@ -2327,7 +2327,7 @@ TEST(BasicEndToEndTest, testSyncFlushBatchMessagesPartitionedTopic) {
consConfig.setConsumerType(ConsumerExclusive);
consConfig.setReceiverQueueSize(2);
ASSERT_FALSE(consConfig.hasMessageListener());
Consumer consumer[numberOfPartitions];
std::vector<Consumer> consumer(numberOfPartitions);
Result subscribeResult;
for (int i = 0; i < numberOfPartitions; i++) {
std::stringstream partitionedTopicName;
......@@ -2539,7 +2539,7 @@ TEST(BasicEndToEndTest, testFlushInPartitionedProducer) {
consConfig.setConsumerType(ConsumerExclusive);
consConfig.setReceiverQueueSize(2);
ASSERT_FALSE(consConfig.hasMessageListener());
Consumer consumer[numberOfPartitions];
std::vector<Consumer> consumer(numberOfPartitions);
Result subscribeResult;
for (int i = 0; i < numberOfPartitions; i++) {
std::stringstream partitionedTopicName;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册