Skip to content

Commit 2f5cd4e

Browse files
committed
Update waiter comments
1 parent 0ec6449 commit 2f5cd4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/cloudfront/src/test/java/software/amazon/awssdk/services/cloudfront/CloudFrontUtilitiesIntegrationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,13 +619,12 @@ private static String getOrCreateKeyGroup() {
619619
});
620620

621621
// KeyGroups update quickly, but it takes up to 1 minute to propagate to the cache
622+
// and there is not any other state we can easily query to wait on.
622623
System.out.println("Waiting for key group update to propagate.");
623624
Instant expectedPropagationTime = Instant.now().plusSeconds(60);
624625
Waiter.run(Instant::now)
625626
.until((t) -> t.isAfter(expectedPropagationTime))
626627
.orFailAfter(Duration.ofMinutes(1));
627-
628-
System.out.println("Waited for: " + expectedPropagationTime.compareTo(Instant.now()) + " seconds");
629628
}
630629
return keyGroupSummary.get().keyGroup().id();
631630
}

0 commit comments

Comments
 (0)