Skip to content

Commit

Permalink
fix: use async test subscribers functions (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik authored Aug 24, 2024
1 parent 32b697f commit 5e52cf3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion faststream/confluent/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_publisher_fake_subscriber(
if not sub.calls:

@sub # type: ignore[misc]
def publisher_response_subscriber(msg: Any) -> None:
async def publisher_response_subscriber(msg: Any) -> None:
pass

broker.setup_subscriber(sub)
Expand Down
2 changes: 1 addition & 1 deletion faststream/kafka/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_publisher_fake_subscriber(
if not sub.calls:

@sub # type: ignore[misc]
def publisher_response_subscriber(msg: Any) -> None:
async def publisher_response_subscriber(msg: Any) -> None:
pass

broker.setup_subscriber(sub)
Expand Down
2 changes: 1 addition & 1 deletion faststream/nats/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def create_publisher_fake_subscriber(
if not sub.calls:

@sub
def publisher_response_subscriber(msg: Any) -> None:
async def publisher_response_subscriber(msg: Any) -> None:
pass

broker.setup_subscriber(sub)
Expand Down
2 changes: 1 addition & 1 deletion faststream/rabbit/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_publisher_fake_subscriber(
if not sub.calls:

@sub
def publisher_response_subscriber(msg: Any) -> None:
async def publisher_response_subscriber(msg: Any) -> None:
pass

broker.setup_subscriber(sub)
Expand Down
2 changes: 1 addition & 1 deletion faststream/redis/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_publisher_fake_subscriber(
if not sub.calls:

@sub
def publisher_response_subscriber(msg: Any) -> None:
async def publisher_response_subscriber(msg: Any) -> None:
pass

broker.setup_subscriber(sub)
Expand Down

0 comments on commit 5e52cf3

Please sign in to comment.