Skip to content

Commit 2af2770

Browse files
committed
fixed sonar quebe issues
1 parent e734ebc commit 2af2770

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

http-clients/apache5-client/src/test/java/software/amazon/awssdk/http/apache5/Apache5HttpClientWireMockTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public void closeReleasesResources() throws Exception {
287287
}
288288

289289
@Test
290-
public void connectionTimeout_exceedsLimit_throwsException() throws Exception {
290+
public void connectionTimeout_exceedsLimit_throwsException() {
291291
// Test connection timeout with a very short timeout and non-responsive address
292292
try (SdkHttpClient client = Apache5HttpClient.builder()
293293
.connectionTimeout(Duration.ofMillis(100))
@@ -317,8 +317,9 @@ public void connectionTimeout_exceedsLimit_throwsException() throws Exception {
317317
}
318318
}
319319

320+
320321
@Test
321-
public void socketTimeout_exceedsLimit_throwsException() throws Exception {
322+
public void socketTimeout_exceedsLimit_throwsException() {
322323
// Configure WireMock to delay response longer than socket timeout
323324
mockServer.stubFor(any(urlPathEqualTo("/delayed"))
324325
.willReturn(aResponse()

0 commit comments

Comments
 (0)