summaryrefslogtreecommitdiff
path: root/test/test_client_async.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-07-16 11:58:58 -0700
committerDana Powers <dana.powers@gmail.com>2016-07-16 13:47:09 -0700
commit9960f3d8d2902ae0bb57262a6e530ed219168b2c (patch)
treee537d752796e43602eda0daac98aac8622efdb50 /test/test_client_async.py
parent72bcadcaf106668ff275e03a12b9512ee4983547 (diff)
downloadkafka-python-9960f3d8d2902ae0bb57262a6e530ed219168b2c.tar.gz
Add rack to BrokerMetadata - it is always None when using MetadataRequest v0
Diffstat (limited to 'test/test_client_async.py')
-rw-r--r--test/test_client_async.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_client_async.py b/test/test_client_async.py
index dfe11ea..aa91704 100644
--- a/test/test_client_async.py
+++ b/test/test_client_async.py
@@ -53,8 +53,8 @@ def test_bootstrap_success(conn):
conn.connect.assert_called_with()
conn.send.assert_called_once_with(MetadataRequest[0]([]))
assert cli._bootstrap_fails == 0
- assert cli.cluster.brokers() == set([BrokerMetadata(0, 'foo', 12),
- BrokerMetadata(1, 'bar', 34)])
+ assert cli.cluster.brokers() == set([BrokerMetadata(0, 'foo', 12, None),
+ BrokerMetadata(1, 'bar', 34, None)])
def test_bootstrap_failure(conn):
conn.state = ConnectionStates.DISCONNECTED