Skip to content

Commit

Permalink
Restore MicrometerHttpRequestExecutorTest.waitForContinueGetsPassedTo…
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored Nov 25, 2024
1 parent 4d2175c commit da7eac1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.apache.hc.core5.http.io.HttpClientResponseHandler;
import org.apache.hc.core5.http.io.entity.EntityUtils;
import org.apache.hc.core5.util.Timeout;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down Expand Up @@ -182,12 +181,12 @@ void routeTaggedIfEnabled(boolean configureObservationRegistry, @WiremockResolve
}

@Test
@Disabled("brittle test using reflection to check internals of third-party code")
void waitForContinueGetsPassedToSuper() {
MicrometerHttpRequestExecutor requestExecutor = MicrometerHttpRequestExecutor.builder(registry)
.waitForContinue(Timeout.ofMilliseconds(1000))
.build();
assertThat(requestExecutor).hasFieldOrPropertyWithValue("waitForContinue", Timeout.ofMilliseconds(1000));
assertThat(requestExecutor).extracting("http1Config.waitForContinueTimeout")
.isEqualTo(Timeout.ofMilliseconds(1000));
}

@ParameterizedTest
Expand Down

0 comments on commit da7eac1

Please sign in to comment.