@@ -144,9 +144,9 @@ def setUpModule():
144144
145145 # After listing, create the test instances.
146146 admin_op = Config .INSTANCE .create (clusters = [Config .CLUSTER ])
147- admin_op .result (timeout = 10 )
147+ admin_op .result (timeout = 30 )
148148 data_op = Config .INSTANCE_DATA .create (clusters = [Config .CLUSTER_DATA ])
149- data_op .result (timeout = 10 )
149+ data_op .result (timeout = 30 )
150150
151151
152152def tearDownModule ():
@@ -203,7 +203,7 @@ def test_create_instance_defaults(self):
203203 self .instances_to_delete .append (instance )
204204
205205 # We want to make sure the operation completes.
206- operation .result (timeout = 10 )
206+ operation .result (timeout = 30 )
207207
208208 # Create a new instance instance and make sure it is the same.
209209 instance_alt = Config .CLIENT .instance (ALT_INSTANCE_ID )
@@ -232,7 +232,7 @@ def test_create_instance(self):
232232 self .instances_to_delete .append (instance )
233233
234234 # We want to make sure the operation completes.
235- operation .result (timeout = 10 )
235+ operation .result (timeout = 30 )
236236
237237 # Create a new instance instance and make sure it is the same.
238238 instance_alt = Config .CLIENT .instance (ALT_INSTANCE_ID )
@@ -675,7 +675,7 @@ def test_update_display_name_and_labels(self):
675675 operation = Config .INSTANCE .update ()
676676
677677 # We want to make sure the operation completes.
678- operation .result (timeout = 10 )
678+ operation .result (timeout = 30 )
679679
680680 # Create a new instance instance and reload it.
681681 instance_alt = Config .CLIENT .instance (INSTANCE_ID , labels = LABELS )
@@ -692,7 +692,7 @@ def test_update_display_name_and_labels(self):
692692 operation = Config .INSTANCE .update ()
693693
694694 # We want to make sure the operation completes.
695- operation .result (timeout = 10 )
695+ operation .result (timeout = 30 )
696696
697697 def test_update_type (self ):
698698 from google .cloud .bigtable .enums import Instance
@@ -709,7 +709,7 @@ def test_update_type(self):
709709 self .instances_to_delete .append (instance )
710710
711711 # We want to make sure the operation completes.
712- operation .result (timeout = 10 )
712+ operation .result (timeout = 30 )
713713
714714 # Unset the display_name
715715 instance .display_name = None
@@ -718,7 +718,7 @@ def test_update_type(self):
718718 operation = instance .update ()
719719
720720 # We want to make sure the operation completes.
721- operation .result (timeout = 10 )
721+ operation .result (timeout = 30 )
722722
723723 # Create a new instance instance and reload it.
724724 instance_alt = Config .CLIENT .instance (ALT_INSTANCE_ID )
@@ -734,7 +734,7 @@ def test_update_cluster(self):
734734 operation = Config .CLUSTER .update ()
735735
736736 # We want to make sure the operation completes.
737- operation .result (timeout = 10 )
737+ operation .result (timeout = 30 )
738738
739739 # Create a new cluster instance and reload it.
740740 alt_cluster = Config .INSTANCE .cluster (CLUSTER_ID )
@@ -745,7 +745,7 @@ def test_update_cluster(self):
745745 # other test cases.
746746 Config .CLUSTER .serve_nodes = SERVE_NODES
747747 operation = Config .CLUSTER .update ()
748- operation .result (timeout = 20 )
748+ operation .result (timeout = 30 )
749749
750750 def test_create_cluster (self ):
751751 from google .cloud .bigtable .enums import StorageType
@@ -1084,7 +1084,7 @@ def test_backup(self):
10841084 self .assertFalse (temp_backup .exists ())
10851085
10861086 # Testing `Backup.create()` method
1087- temp_backup .create ().result ()
1087+ temp_backup .create ().result (timeout = 30 )
10881088
10891089 # Implicit testing of `Backup.delete()` method
10901090 self .backups_to_delete .append (temp_backup )
@@ -1120,7 +1120,7 @@ def test_backup(self):
11201120 restored_table = Config .INSTANCE_DATA .table (restored_table_id )
11211121 temp_table .restore (
11221122 restored_table_id , cluster_id = CLUSTER_ID_DATA , backup_id = temp_backup_id ,
1123- ).result ()
1123+ ).result (timeout = 30 )
11241124 tables = Config .INSTANCE_DATA .list_tables ()
11251125 self .assertIn (restored_table , tables )
11261126 restored_table .delete ()
@@ -1134,10 +1134,10 @@ def test_backup(self):
11341134 cluster_id = alt_cluster_id , location_id = LOCATION_ID , serve_nodes = SERVE_NODES ,
11351135 )
11361136 if not Config .IN_EMULATOR :
1137- alt_instance .create (clusters = [alt_cluster ]).result (timeout = 10 )
1137+ alt_instance .create (clusters = [alt_cluster ]).result (timeout = 30 )
11381138
11391139 # Testing `restore()`...
1140- temp_backup .restore (restored_table_id , alt_instance_id ).result ()
1140+ temp_backup .restore (restored_table_id , alt_instance_id ).result (timeout = 30 )
11411141 restored_table = alt_instance .table (restored_table_id )
11421142 self .assertIn (restored_table , alt_instance .list_tables ())
11431143 restored_table .delete ()
0 commit comments