@@ -427,7 +427,7 @@ def test_send_message_configuration_conversion():
427427 v10_expected = pb2_v10 .SendMessageConfiguration (
428428 accepted_output_modes = ['text/plain' , 'application/json' ],
429429 history_length = 10 ,
430- blocking = True ,
430+ return_immediately = False ,
431431 task_push_notification_config = pb2_v10 .TaskPushNotificationConfig (
432432 url = 'http://test' ,
433433 authentication = pb2_v10 .AuthenticationInfo (scheme = 'Basic' ),
@@ -443,7 +443,7 @@ def test_send_message_configuration_conversion():
443443
444444def test_send_message_configuration_conversion_minimal ():
445445 v03_config = types_v03 .MessageSendConfiguration ()
446- v10_expected = pb2_v10 .SendMessageConfiguration (blocking = True )
446+ v10_expected = pb2_v10 .SendMessageConfiguration (return_immediately = False )
447447
448448 v10_config = to_core_send_message_configuration (v03_config )
449449 assert v10_config == v10_expected
@@ -1307,7 +1307,7 @@ def test_send_message_request_conversion():
13071307 parts = [pb2_v10 .Part (text = 'Hi' )],
13081308 ),
13091309 configuration = pb2_v10 .SendMessageConfiguration (
1310- history_length = 5 , blocking = True
1310+ history_length = 5 , return_immediately = False
13111311 ),
13121312 )
13131313 ParseDict ({'k' : 'v' }, v10_expected .metadata )
@@ -1767,8 +1767,7 @@ def test_to_core_send_message_request_no_configuration():
17671767 ),
17681768 )
17691769 core_req = to_core_send_message_request (v03_req )
1770- # Default is True if configuration is absent
1771- assert core_req .configuration .blocking is True
1770+ assert not core_req .HasField ('configuration' )
17721771 assert not core_req .HasField ('message' )
17731772
17741773
0 commit comments