@@ -93,7 +93,7 @@ def test_result_message(self):
9393 rf .send_request ()
9494
9595 rf .session ._pools .get .assert_called_once_with ('ip1' )
96- pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY )
96+ pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY , tablet = ANY )
9797
9898 connection .send_msg .assert_called_once_with (rf .message , 1 , cb = ANY , encoder = ProtocolHandler .encode_message , decoder = ProtocolHandler .decode_message , result_metadata = [])
9999
@@ -284,7 +284,7 @@ def test_retry_policy_says_retry(self):
284284 rf .send_request ()
285285
286286 rf .session ._pools .get .assert_called_once_with ('ip1' )
287- pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY )
287+ pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY , tablet = ANY )
288288 connection .send_msg .assert_called_once_with (rf .message , 1 , cb = ANY , encoder = ProtocolHandler .encode_message , decoder = ProtocolHandler .decode_message , result_metadata = [])
289289
290290 result = Mock (spec = UnavailableErrorMessage , info = {})
@@ -303,7 +303,7 @@ def test_retry_policy_says_retry(self):
303303 # it should try again with the same host since this was
304304 # an UnavailableException
305305 rf .session ._pools .get .assert_called_with (host )
306- pool .borrow_connection .assert_called_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY )
306+ pool .borrow_connection .assert_called_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY , tablet = ANY )
307307 connection .send_msg .assert_called_with (rf .message , 2 , cb = ANY , encoder = ProtocolHandler .encode_message , decoder = ProtocolHandler .decode_message , result_metadata = [])
308308
309309 def test_retry_with_different_host (self ):
@@ -318,7 +318,7 @@ def test_retry_with_different_host(self):
318318 rf .send_request ()
319319
320320 rf .session ._pools .get .assert_called_once_with ('ip1' )
321- pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY )
321+ pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY , tablet = ANY )
322322 connection .send_msg .assert_called_once_with (rf .message , 1 , cb = ANY , encoder = ProtocolHandler .encode_message , decoder = ProtocolHandler .decode_message , result_metadata = [])
323323 assert ConsistencyLevel .QUORUM == rf .message .consistency_level
324324
@@ -337,7 +337,7 @@ def test_retry_with_different_host(self):
337337
338338 # it should try with a different host
339339 rf .session ._pools .get .assert_called_with ('ip2' )
340- pool .borrow_connection .assert_called_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY )
340+ pool .borrow_connection .assert_called_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY , tablet = ANY )
341341 connection .send_msg .assert_called_with (rf .message , 2 , cb = ANY , encoder = ProtocolHandler .encode_message , decoder = ProtocolHandler .decode_message , result_metadata = [])
342342
343343 # the consistency level should be the same
@@ -982,7 +982,7 @@ def test_single_host_query_plan_exhausted_after_one_retry(self):
982982
983983 # Verify initial request was sent
984984 rf .session ._pools .get .assert_called_once_with (specific_host )
985- pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY )
985+ pool .borrow_connection .assert_called_once_with (timeout = ANY , routing_key = ANY , keyspace = ANY , table = ANY , tablet = ANY )
986986 connection .send_msg .assert_called_once_with (rf .message , 1 , cb = ANY , encoder = ProtocolHandler .encode_message , decoder = ProtocolHandler .decode_message , result_metadata = [])
987987
988988 # Simulate a ServerError response (which triggers RETRY_NEXT_HOST by default)
0 commit comments