66 "Processing message: {'id': 3, 'message': 'hello world'} from TOPIC_B1..." ,
77 "Processing message: {'id': 4, 'message': 'hello world'} from TOPIC_B1..." ,
88 "Processing message: {'id': 5, 'message': 'hello world'} from TOPIC_B1..." ,
9+ "Closing subscription..." ,
910]
1011
1112EXPECTED_HANDLER_SUBSCRIBER = [
1415 "Processing message: {'id': 3, 'message': 'hello world'} from TOPIC_B2..." ,
1516 "Processing message: {'id': 4, 'message': 'hello world'} from TOPIC_B2..." ,
1617 "Processing message: {'id': 5, 'message': 'hello world'} from TOPIC_B2..." ,
18+ "Closing subscription..." ,
1719]
1820
1921EXPECTED_PUBLISHER = [
2830@pytest .mark .example_dir ('pubsub-streaming-async' )
2931def test_pubsub_streaming_async (dapr ):
3032 dapr .start (
31- '--app-id python-subscriber --app-protocol grpc -- python3 subscriber.py --topic=TOPIC_B1' ,
33+ '--app-id python-subscriber --app-protocol grpc -- python3 -u subscriber.py --topic=TOPIC_B1' ,
3234 wait = 5 ,
3335 )
3436 publisher_output = dapr .run (
3537 '--app-id python-publisher --app-protocol grpc --dapr-grpc-port=3500 '
36- '--enable-app-health-check -- python3 publisher.py --topic=TOPIC_B1' ,
38+ '--enable-app-health-check -- python3 -u publisher.py --topic=TOPIC_B1' ,
3739 timeout = 30 ,
3840 )
3941 for line in EXPECTED_PUBLISHER :
@@ -47,12 +49,12 @@ def test_pubsub_streaming_async(dapr):
4749@pytest .mark .example_dir ('pubsub-streaming-async' )
4850def test_pubsub_streaming_async_handler (dapr ):
4951 dapr .start (
50- '--app-id python-subscriber --app-protocol grpc -- python3 subscriber-handler.py --topic=TOPIC_B2' ,
52+ '--app-id python-subscriber --app-protocol grpc -- python3 -u subscriber-handler.py --topic=TOPIC_B2' ,
5153 wait = 5 ,
5254 )
5355 publisher_output = dapr .run (
5456 '--app-id python-publisher --app-protocol grpc --dapr-grpc-port=3500 '
55- '--enable-app-health-check -- python3 publisher.py --topic=TOPIC_B2' ,
57+ '--enable-app-health-check -- python3 -u publisher.py --topic=TOPIC_B2' ,
5658 timeout = 30 ,
5759 )
5860 for line in EXPECTED_PUBLISHER :
0 commit comments