Skip to content

Commit

Permalink
tests: correct setup call order
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Sep 20, 2024
1 parent 3d39bc9 commit b27fed3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions faststream/_internal/testing/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@ def _patch_broker(self, broker: Broker) -> Generator[None, None, None]:
"ping",
return_value=True,
):
broker._setup()
yield

def _fake_start(self, broker: Broker, *args: Any, **kwargs: Any) -> None:
broker._setup()

patch_broker_calls(broker)

for p in broker._publishers.values():
Expand Down

0 comments on commit b27fed3

Please sign in to comment.