Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ private SdkClientConfiguration addCompressionConfigGlobalDefaults(SdkClientConfi
if (systemSetting.isPresent()) {
compressionEnabled = !systemSetting.get();
} else {
String profileName = ProfileFileSystemSetting.AWS_PROFILE.getStringValueOrThrow();
Profile profile = profileFileSupplier.get().profile(profileName).orElse(null);
Profile profile = profileFileSupplier.get().profile(configuration.option(PROFILE_NAME)).orElse(null);
if (profile != null) {
Optional<Boolean> profileSetting = profile.booleanProperty(ProfileProperty.DISABLE_REQUEST_COMPRESSION);
if (profileSetting.isPresent()) {
Expand All @@ -317,8 +316,7 @@ private SdkClientConfiguration addCompressionConfigGlobalDefaults(SdkClientConfi
if (systemSetting.isPresent()) {
compressionThreshold = systemSetting.get();
} else {
String profileName = ProfileFileSystemSetting.AWS_PROFILE.getStringValueOrThrow();
Profile profile = profileFileSupplier.get().profile(profileName).orElse(null);
Profile profile = profileFileSupplier.get().profile(configuration.option(PROFILE_NAME)).orElse(null);
if (profile != null) {
Optional<String> profileSetting = profile.property(ProfileProperty.REQUEST_MIN_COMPRESSION_SIZE_BYTES);
if (profileSetting.isPresent()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void tearDown() throws InterruptedException {
Waiter.run(() -> syncClientWithApache.describeObject(r -> r.path("/foo")))
.untilException(ObjectNotFoundException.class)
.orFailAfter(Duration.ofMinutes(1));
Thread.sleep(500);
Thread.sleep(1000);
mediaStoreClient.deleteContainer(r -> r.containerName(CONTAINER_NAME));
}

Expand Down