This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push: new b052669 Fixed test_producer_send_async in Python (#1491) b052669 is described below commit b0526695c5c08a42bd10671c8a344eb44f0116b3 Author: Matteo Merli <mme...@apache.org> AuthorDate: Tue Apr 3 16:15:21 2018 -0700 Fixed test_producer_send_async in Python (#1491) --- pulsar-client-cpp/python/pulsar_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pulsar-client-cpp/python/pulsar_test.py b/pulsar-client-cpp/python/pulsar_test.py index 4d3e0ad..f35736d 100755 --- a/pulsar-client-cpp/python/pulsar_test.py +++ b/pulsar-client-cpp/python/pulsar_test.py @@ -87,7 +87,10 @@ class PulsarTest(TestCase): producer.send_async('hello', send_callback) producer.send_async('hello', send_callback) - time.sleep(0.1) + i = 0 + while len(sent_messages) < 3 and i < 100: + time.sleep(0.1) + i += 1 self.assertEqual(len(sent_messages), 3) client.close() -- To stop receiving notification emails like this one, please contact si...@apache.org.