Skip to content

Commit

Permalink
Better mocking of bucket existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
sbeimin committed Feb 26, 2018
1 parent 21609e6 commit 30c593c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ public String getIdentifier() {
}
}
}catch (IOException e) {
throw new RuntimeException(e);
throw new AmazonS3Exception("Problem creating Acl", e);
}

return res;
Expand Down Expand Up @@ -1451,6 +1451,6 @@ public AmazonS3Waiters waiters() {

@Override
public boolean doesBucketExistV2(String bucketName) throws SdkClientException, AmazonServiceException {
return !"newer-bucket".equals(bucketName);
return Files.exists(base.resolve(bucketName));
}
}

0 comments on commit 30c593c

Please sign in to comment.