@@ -643,6 +643,7 @@ def _table_read_row_helper(chunks, expected_result, app_profile_id=None):
643
643
from google .cloud .bigtable import table as MUT
644
644
from google .cloud .bigtable .row_set import RowSet
645
645
from google .cloud .bigtable .row_filters import RowSampleFilter
646
+ from google .cloud .bigtable .row_data import DEFAULT_RETRY_READ_ROWS
646
647
647
648
credentials = _make_credentials ()
648
649
client = _make_client (project = "project-id" , credentials = credentials , admin = True )
@@ -691,7 +692,9 @@ def mock_create_row_request(table_name, **kwargs):
691
692
assert result == expected_result
692
693
assert mock_created == expected_request
693
694
694
- data_api .read_rows .assert_called_once_with (request_pb , timeout = 61.0 )
695
+ data_api .read_rows .assert_called_once_with (
696
+ request_pb , timeout = 61.0 , retry = DEFAULT_RETRY_READ_ROWS
697
+ )
695
698
696
699
697
700
def test_table_read_row_miss_no__responses ():
@@ -906,7 +909,7 @@ def mock_create_row_request(table_name, **kwargs):
906
909
}
907
910
assert mock_created == [(table .name , created_kwargs )]
908
911
909
- data_api .read_rows .assert_called_once_with (request_pb , timeout = 61.0 )
912
+ data_api .read_rows .assert_called_once_with (request_pb , timeout = 61.0 , retry = retry )
910
913
911
914
912
915
def test_table_read_retry_rows ():
@@ -1082,6 +1085,7 @@ def test_table_yield_rows_with_row_set():
1082
1085
from google .cloud .bigtable .row_set import RowSet
1083
1086
from google .cloud .bigtable .row_set import RowRange
1084
1087
from google .cloud .bigtable .table import _create_row_request
1088
+ from google .cloud .bigtable .row_data import DEFAULT_RETRY_READ_ROWS
1085
1089
1086
1090
credentials = _make_credentials ()
1087
1091
client = _make_client (project = "project-id" , credentials = credentials , admin = True )
@@ -1149,7 +1153,9 @@ def test_table_yield_rows_with_row_set():
1149
1153
end_key = ROW_KEY_2 ,
1150
1154
)
1151
1155
expected_request .rows .row_keys .append (ROW_KEY_3 )
1152
- data_api .read_rows .assert_called_once_with (expected_request , timeout = 61.0 )
1156
+ data_api .read_rows .assert_called_once_with (
1157
+ expected_request , timeout = 61.0 , retry = DEFAULT_RETRY_READ_ROWS
1158
+ )
1153
1159
1154
1160
1155
1161
def test_table_sample_row_keys ():
0 commit comments