Skip to content

Commit b74e2bd

Browse files
committed
add credits
Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 2d0d638 commit b74e2bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rabbitmq_amqp_python_client/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def stop(self) -> None:
151151
self._receiver.container.stop()
152152

153153
def _create_receiver(self, addr: Optional[str] = None) -> BlockingReceiver:
154-
credit = 2
154+
credit = 10
155155
if self._credit is not None:
156156
credit = self._credit
157157

tests/direct_reply_to/test_direct_reply.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def create_connection(environment: Environment) -> Connection:
2121

2222
def test_direct_reply_to_send_and_receive(environment: Environment) -> None:
2323
"""Test that messages can be published to and consumed from a direct reply-to queue."""
24-
messages_to_send = 10
24+
messages_to_send = 100
2525

2626
# Create a consumer using DirectReplyToConsumerOptions
2727
consumer = create_connection(environment).consumer(
28-
consumer_options=DirectReplyToConsumerOptions()
28+
credit=100, consumer_options=DirectReplyToConsumerOptions()
2929
)
3030

3131
# Get the queue address from the consumer

0 commit comments

Comments
 (0)