Skip to content

Commit 75ca814

Browse files
author
flynnzzhang
committed
update ut
1 parent 856eaeb commit 75ca814

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ut/test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,16 @@ def setUp():
223223
_create_test_bucket(copy_test_bucket)
224224
_upload_test_file(test_bucket, test_object)
225225
_upload_test_file(copy_test_bucket, test_object)
226+
response = client.ci_get_asr_bucket(BucketName=ci_bucket_name)
227+
if response['TotalCount'] == '0':
228+
client.ci_open_asr_bucket(ci_bucket_name)
226229

227230

228231
def tearDown():
229232
print("function teardown")
233+
response = client.ci_get_asr_bucket(BucketName=ci_bucket_name)
234+
if response['TotalCount'] != '0':
235+
client.ci_close_asr_bucket(ci_bucket_name)
230236

231237

232238
def test_cos_comm_format_region():

0 commit comments

Comments
 (0)