File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 28
28
retry ,
29
29
stop_after_attempt ,
30
30
wait_exponential ,
31
+ wait_fixed ,
31
32
retry_if_exception_type ,
32
33
after_log ,
33
34
wait_random ,
@@ -115,9 +116,17 @@ def setUp(self):
115
116
self .output_file_path = None
116
117
self .sub_input_file_path = None
117
118
119
+ @retry (
120
+ stop = stop_after_attempt (5 ),
121
+ wait = wait_fixed (30 ),
122
+ retry = retry_if_exception_type (Exception ),
123
+ )
118
124
def tearDown (self ):
119
125
if self .stack_name :
120
- self .client_provider .cfn_client .delete_stack (StackName = self .stack_name )
126
+ client = self .client_provider .cfn_client
127
+ client .delete_stack (StackName = self .stack_name )
128
+ waiter = client .get_waiter ("stack_delete_complete" )
129
+ waiter .wait (StackName = self .stack_name )
121
130
if self .output_file_path and os .path .exists (self .output_file_path ):
122
131
os .remove (self .output_file_path )
123
132
if self .sub_input_file_path and os .path .exists (self .sub_input_file_path ):
You can’t perform that action at this time.
0 commit comments