Skip to content

Commit

Permalink
Fix #156 (#158)
Browse files Browse the repository at this point in the history
* remove extra throws from ClientFactory.open

* remove throws from ClientFactory.open

* fix test cases
  • Loading branch information
kortemik authored May 13, 2024
1 parent 9b6bed7 commit b8ae712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/teragrep/rlp_03/client/ClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void testClient() throws IOException {
Assertions.assertEquals("", closeResponse.payload().toString());
} // close the closeResponse frame, free resources
}
catch (InterruptedException | ExecutionException | IOException | TimeoutException exception) {
catch (InterruptedException | ExecutionException | TimeoutException exception) {
throw new RuntimeException(exception);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.*;
Expand Down Expand Up @@ -181,7 +180,7 @@ public void testStuckClient() {

Assertions.assertEquals(3, completedTransactions.get());
}
catch (InterruptedException | ExecutionException | IOException | TimeoutException exception) {
catch (InterruptedException | ExecutionException | TimeoutException exception) {
Assertions.fail("testStuckClient threw exception", exception);
}
}
Expand Down

0 comments on commit b8ae712

Please sign in to comment.