Skip to content

Commit

Permalink
black fml.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgene committed Oct 12, 2024
1 parent 710890a commit 3fe7787
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def test_empty_broker_list():
)
assert len(cluster.brokers()) == 2


def test_request_update_expecting_success():
cluster = ClusterMetadata()
updated_cluster = cluster.request_update()
Expand All @@ -28,12 +29,13 @@ def test_request_update_expecting_success():
)
assert updated_cluster.result() == cluster


def test_request_update_expecting_failure():
cluster = ClusterMetadata()
updated_cluster = cluster.request_update()
test_metadata = MetadataResponse[0](
[], # empty brokers
[(17, "foo", []), (17, "bar", [])], # topics w/ error
)
[], # empty brokers
[(17, "foo", []), (17, "bar", [])], # topics w/ error
)
cluster.update_metadata(test_metadata)
assert updated_cluster.exception() is not None

0 comments on commit 3fe7787

Please sign in to comment.