Skip to content

Commit

Permalink
Fix release script distribution check
Browse files Browse the repository at this point in the history
Update `BintrayService.isDistributionComplete` to use unpublished
artifacts.
  • Loading branch information
philwebb committed Oct 30, 2020
1 parent a2d8767 commit d87c437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -97,7 +97,7 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requiredDigests, Duration timeout,
Duration pollInterval) {
logger.debug("Checking if distribution is complete");
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 0);
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 1);
try {
waitAtMost(timeout).with().pollDelay(Duration.ZERO).pollInterval(pollInterval).until(() -> {
logger.debug("Checking Bintray");
Expand Down
Expand Up @@ -77,9 +77,9 @@ void tearDown() {

@Test
void isDistributionComplete() throws Exception {
setupGetPackageFiles(0, "no-package-files.json");
setupGetPackageFiles(0, "some-package-files.json");
setupGetPackageFiles(0, "all-package-files.json");
setupGetPackageFiles(1, "no-package-files.json");
setupGetPackageFiles(1, "some-package-files.json");
setupGetPackageFiles(1, "all-package-files.json");
Set<String> digests = new LinkedHashSet<>();
digests.add("602e20176706d3cc7535f01ffdbe91b270ae5012");
digests.add("602e20176706d3cc7535f01ffdbe91b270ae5013");
Expand Down

0 comments on commit d87c437

Please sign in to comment.