You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2019/10/18 08:11:07 UTC
[rocketmq-client-python] branch ctypes updated: Fix typos in test
cases
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch ctypes
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-python.git
The following commit(s) were added to refs/heads/ctypes by this push:
new d66f166 Fix typos in test cases
new 9f78193 Merge pull request #54 from messense/rocketmq-python-fix-typo
d66f166 is described below
commit d66f1660484269a692af82947917cb2fcbdbf3e3
Author: messense <me...@icloud.com>
AuthorDate: Fri Oct 18 09:56:05 2019 +0800
Fix typos in test cases
---
tests/test_consumer.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/test_consumer.py b/tests/test_consumer.py
index 7e1684d..fb408ab 100644
--- a/tests/test_consumer.py
+++ b/tests/test_consumer.py
@@ -41,14 +41,14 @@ def test_push_consumer(producer, push_consumer):
assert msg.body.decode('utf-8') == 'XXXX'
assert msg[MessageProperty.KEYS]
except Exception as exc:
- erros.append(exc)
+ errors.append(exc)
push_consumer.subscribe('test', on_message)
push_consumer.start()
while not stop_event.is_set():
time.sleep(2)
if errors:
- raise erros[0]
+ raise errors[0]
def test_push_consumer_reconsume_later(producer, push_consumer):
@@ -74,4 +74,4 @@ def test_push_consumer_reconsume_later(producer, push_consumer):
while not stop_event.is_set():
time.sleep(2)
if errors:
- raise erros[0]
+ raise errors[0]