diff options
author | Dana Powers <dana.powers@gmail.com> | 2017-12-21 14:46:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-21 14:46:10 -0800 |
commit | ad024d1e897dbf16bd629fa63895bd7af4a8d959 (patch) | |
tree | f1993351b2c6487e8e623cefabf42ddf7477f666 /test/test_consumer.py | |
parent | 995664c7d407009a0a1030c7541848eb5ad51c97 (diff) | |
download | kafka-python-ad024d1e897dbf16bd629fa63895bd7af4a8d959.tar.gz |
KAFKA-3888 Use background thread to process consumer heartbeats (#1266)
Diffstat (limited to 'test/test_consumer.py')
-rw-r--r-- | test/test_consumer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_consumer.py b/test/test_consumer.py index e5dd946..013529f 100644 --- a/test/test_consumer.py +++ b/test/test_consumer.py @@ -14,11 +14,11 @@ from kafka.structs import ( class TestKafkaConsumer(unittest.TestCase): def test_non_integer_partitions(self): with self.assertRaises(AssertionError): - SimpleConsumer(MagicMock(), 'group', 'topic', partitions = [ '0' ]) + SimpleConsumer(MagicMock(), 'group', 'topic', partitions=['0']) def test_session_timeout_larger_than_request_timeout_raises(self): with self.assertRaises(KafkaConfigurationError): - KafkaConsumer(bootstrap_servers='localhost:9092', session_timeout_ms=60000, request_timeout_ms=40000) + KafkaConsumer(bootstrap_servers='localhost:9092', api_version=(0,9), group_id='foo', session_timeout_ms=60000, request_timeout_ms=40000) def test_fetch_max_wait_larger_than_request_timeout_raises(self): with self.assertRaises(KafkaConfigurationError): |