BewareMyPower commented on code in PR #579:
URL: https://github.com/apache/pulsar-client-cpp/pull/579#discussion_r3302623101


##########
tests/MessageChunkingTest.cc:
##########
@@ -102,7 +104,16 @@ TEST_F(MessageChunkingTest, testInvalidConfig) {
     conf.setBatchingEnabled(true);
     conf.setChunkingEnabled(true);
     Producer producer;
-    ASSERT_THROW(client.createProducer("xxx", conf, producer), 
std::invalid_argument);
+    ASSERT_EQ(ResultInvalidConfiguration, client.createProducer("xxx", conf, 
producer));

Review Comment:
   Though I don't think it makes a big difference and using error code in 
asynchronous method is safer, I will still revert this unnecessary change from 
this PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to