@@ -556,6 +556,8 @@ def test_transaction_should_include_begin_with_first_batch_update(self):
556556 ("google-cloud-resource-prefix" , database .name ),
557557 ("x-goog-spanner-route-to-leader" , "true" ),
558558 ],
559+ retry = RETRY ,
560+ timeout = TIMEOUT ,
559561 )
560562
561563 def test_transaction_should_use_transaction_id_if_error_with_first_batch_update (
@@ -574,6 +576,8 @@ def test_transaction_should_use_transaction_id_if_error_with_first_batch_update(
574576 ("google-cloud-resource-prefix" , database .name ),
575577 ("x-goog-spanner-route-to-leader" , "true" ),
576578 ],
579+ retry = RETRY ,
580+ timeout = TIMEOUT ,
577581 )
578582 self ._execute_update_helper (transaction = transaction , api = api )
579583 api .execute_sql .assert_called_once_with (
@@ -715,6 +719,8 @@ def test_transaction_should_use_transaction_id_returned_by_first_read(self):
715719 ("google-cloud-resource-prefix" , database .name ),
716720 ("x-goog-spanner-route-to-leader" , "true" ),
717721 ],
722+ retry = RETRY ,
723+ timeout = TIMEOUT ,
718724 )
719725
720726 def test_transaction_should_use_transaction_id_returned_by_first_batch_update (self ):
@@ -729,6 +735,8 @@ def test_transaction_should_use_transaction_id_returned_by_first_batch_update(se
729735 ("google-cloud-resource-prefix" , database .name ),
730736 ("x-goog-spanner-route-to-leader" , "true" ),
731737 ],
738+ retry = RETRY ,
739+ timeout = TIMEOUT ,
732740 )
733741 self ._read_helper (transaction = transaction , api = api )
734742 api .streaming_read .assert_called_once_with (
@@ -797,6 +805,8 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
797805 ("google-cloud-resource-prefix" , database .name ),
798806 ("x-goog-spanner-route-to-leader" , "true" ),
799807 ],
808+ retry = RETRY ,
809+ timeout = TIMEOUT ,
800810 )
801811
802812 self .assertEqual (api .execute_sql .call_count , 2 )
@@ -846,6 +856,8 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
846856 ("google-cloud-resource-prefix" , database .name ),
847857 ("x-goog-spanner-route-to-leader" , "true" ),
848858 ],
859+ retry = RETRY ,
860+ timeout = TIMEOUT ,
849861 )
850862
851863 api .execute_batch_dml .assert_any_call (
@@ -854,6 +866,8 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
854866 ("google-cloud-resource-prefix" , database .name ),
855867 ("x-goog-spanner-route-to-leader" , "true" ),
856868 ],
869+ retry = RETRY ,
870+ timeout = TIMEOUT ,
857871 )
858872
859873 self .assertEqual (api .execute_sql .call_count , 1 )
0 commit comments