summaryrefslogtreecommitdiff
path: root/test/test_failover_integration.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2015-06-04 13:33:53 -0700
committerDana Powers <dana.powers@rd.io>2015-06-06 16:47:26 -0700
commit7b86964dd7c0cb71ba1a3ab150240d7b20e1f2be (patch)
tree2269bb870733f92b0e4c8d35857407825ea0ff6f /test/test_failover_integration.py
parent26abd24dde1d50d79f5c4e39776de8e89f586e0b (diff)
downloadkafka-python-7b86964dd7c0cb71ba1a3ab150240d7b20e1f2be.tar.gz
Include message number in sent message value in _send_random_message
Diffstat (limited to 'test/test_failover_integration.py')
-rw-r--r--test/test_failover_integration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_failover_integration.py b/test/test_failover_integration.py
index 631068a..26da615 100644
--- a/test/test_failover_integration.py
+++ b/test/test_failover_integration.py
@@ -173,7 +173,7 @@ class TestFailover(KafkaIntegrationTestCase):
def _send_random_messages(self, producer, topic, partition, n):
for j in range(n):
logging.debug('_send_random_message to %s:%d -- try %d', topic, partition, j)
- resp = producer.send_messages(topic, partition, random_string(10).encode('utf-8'))
+ resp = producer.send_messages(topic, partition, 'msg {0}: {1}'.format(j, random_string(10)))
if len(resp) > 0:
self.assertEqual(resp[0].error, 0)
logging.debug('_send_random_message to %s:%d -- try %d success', topic, partition, j)