@@ -556,6 +556,8 @@ def test_transaction_should_include_begin_with_first_batch_update(self):
556
556
("google-cloud-resource-prefix" , database .name ),
557
557
("x-goog-spanner-route-to-leader" , "true" ),
558
558
],
559
+ retry = RETRY ,
560
+ timeout = TIMEOUT ,
559
561
)
560
562
561
563
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(
574
576
("google-cloud-resource-prefix" , database .name ),
575
577
("x-goog-spanner-route-to-leader" , "true" ),
576
578
],
579
+ retry = RETRY ,
580
+ timeout = TIMEOUT ,
577
581
)
578
582
self ._execute_update_helper (transaction = transaction , api = api )
579
583
api .execute_sql .assert_called_once_with (
@@ -715,6 +719,8 @@ def test_transaction_should_use_transaction_id_returned_by_first_read(self):
715
719
("google-cloud-resource-prefix" , database .name ),
716
720
("x-goog-spanner-route-to-leader" , "true" ),
717
721
],
722
+ retry = RETRY ,
723
+ timeout = TIMEOUT ,
718
724
)
719
725
720
726
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
729
735
("google-cloud-resource-prefix" , database .name ),
730
736
("x-goog-spanner-route-to-leader" , "true" ),
731
737
],
738
+ retry = RETRY ,
739
+ timeout = TIMEOUT ,
732
740
)
733
741
self ._read_helper (transaction = transaction , api = api )
734
742
api .streaming_read .assert_called_once_with (
@@ -797,6 +805,8 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
797
805
("google-cloud-resource-prefix" , database .name ),
798
806
("x-goog-spanner-route-to-leader" , "true" ),
799
807
],
808
+ retry = RETRY ,
809
+ timeout = TIMEOUT ,
800
810
)
801
811
802
812
self .assertEqual (api .execute_sql .call_count , 2 )
@@ -846,6 +856,8 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
846
856
("google-cloud-resource-prefix" , database .name ),
847
857
("x-goog-spanner-route-to-leader" , "true" ),
848
858
],
859
+ retry = RETRY ,
860
+ timeout = TIMEOUT ,
849
861
)
850
862
851
863
api .execute_batch_dml .assert_any_call (
@@ -854,6 +866,8 @@ def test_transaction_for_concurrent_statement_should_begin_one_transaction_with_
854
866
("google-cloud-resource-prefix" , database .name ),
855
867
("x-goog-spanner-route-to-leader" , "true" ),
856
868
],
869
+ retry = RETRY ,
870
+ timeout = TIMEOUT ,
857
871
)
858
872
859
873
self .assertEqual (api .execute_sql .call_count , 1 )
0 commit comments