BewareMyPower commented on issue #13849:
URL: https://github.com/apache/pulsar/issues/13849#issuecomment-1079098248


   I found this test is just wrong. See 
https://github.com/apache/pulsar/blob/aef5f6d5e2d44f84c9c358f1d9dd9db1108a9d99/pulsar-client-cpp/tests/ProducerTest.cc#L236-L238
   
   If we changed the code to
   
   ```c++
               if (i >= closedAt) {
                   ASSERT_EQ(ResultAlreadyClosed, res);
               } else {
                   ASSERT_EQ(ResultOk, res);
               }
   ```
   
   The test will fail because the send results are all `ResultAlreadyClosed`, 
not only for `i >= closedAt`.


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