summaryrefslogtreecommitdiff
path: root/test/test_client_async.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-08-04 12:21:40 -0700
committerDana Powers <dana.powers@gmail.com>2016-08-04 13:05:36 -0700
commit460f0784a30f303b4543763ca330cce52d6054eb (patch)
tree471f0053fe1b7a9fd5e8cece0c43b8f012dd5ad2 /test/test_client_async.py
parentaf08b54875a5ae5c14fbdeccee4ffe266bda1e00 (diff)
downloadkafka-python-460f0784a30f303b4543763ca330cce52d6054eb.tar.gz
Instrument metrics in BrokerConnection
Diffstat (limited to 'test/test_client_async.py')
-rw-r--r--test/test_client_async.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_client_async.py b/test/test_client_async.py
index 8b3634a..b165f93 100644
--- a/test/test_client_async.py
+++ b/test/test_client_async.py
@@ -49,6 +49,7 @@ def test_bootstrap_success(conn):
args, kwargs = conn.call_args
assert args == ('localhost', 9092, socket.AF_UNSPEC)
kwargs.pop('state_change_callback')
+ kwargs.pop('node_id')
assert kwargs == cli.config
conn.connect.assert_called_with()
conn.send.assert_called_once_with(MetadataRequest[0]([]))
@@ -62,6 +63,7 @@ def test_bootstrap_failure(conn):
args, kwargs = conn.call_args
assert args == ('localhost', 9092, socket.AF_UNSPEC)
kwargs.pop('state_change_callback')
+ kwargs.pop('node_id')
assert kwargs == cli.config
conn.connect.assert_called_with()
conn.close.assert_called_with()