This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new 2b84925  Fix flaky testHasMessageAvailableWhenCreated (#511)
2b84925 is described below

commit 2b84925b097d649091ca0160009cd5e3c1c50062
Author: Yunze Xu <[email protected]>
AuthorDate: Thu Oct 16 23:19:24 2025 +0800

    Fix flaky testHasMessageAvailableWhenCreated (#511)
---
 tests/ReaderTest.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/ReaderTest.cc b/tests/ReaderTest.cc
index 3da25e9..ba5b2a9 100644
--- a/tests/ReaderTest.cc
+++ b/tests/ReaderTest.cc
@@ -645,6 +645,7 @@ TEST_P(ReaderTest, testHasMessageAvailableWhenCreated) {
 
     ProducerConfiguration producerConf;
     producerConf.setBatchingMaxMessages(3);
+    
producerConf.setPartitionsRoutingMode(ProducerConfiguration::UseSinglePartition);
     Producer producer;
     ASSERT_EQ(ResultOk, client.createProducer(topicName, producerConf, 
producer));
 

Reply via email to