Skip to content

Commit

Permalink
change bucket test case
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Jul 24, 2023
1 parent 96ba8a2 commit bc7b61b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/java/test/com/qiniu/storage/BucketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ public void testCreateBuckets() throws Exception {
testFileWithHandler(new TestFileHandler() {
@Override
public void testFile(TestConfig.TestFile file, BucketManager bucketManager) throws IOException {
String bucket = "java-sdk-test-create-bucket";
try {
bucketManager.deleteBucket(bucket);
} catch (QiniuException e) {
}

try {
String bucket = "java-sdk-test-create-bucket";
Response response = bucketManager.createBucket(bucket, file.getRegionId());
assertTrue(response.isOK());

Expand Down

0 comments on commit bc7b61b

Please sign in to comment.