Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

test(rds): stop the SAN handshake test printing its own teardown (#4475)

Kenshin Okinaka6c868f32f200
diff --git a/src/test/java/io/github/hectorvent/floci/services/rds/proxy/PostgresProtocolHandlerTest.java b/src/test/java/io/github/hectorvent/floci/services/rds/proxy/PostgresProtocolHandlerTest.java
index 6c7322d734..9174b65eea 100644
--- a/src/test/java/io/github/hectorvent/floci/services/rds/proxy/PostgresProtocolHandlerTest.java
+++ b/src/test/java/io/github/hectorvent/floci/services/rds/proxy/PostgresProtocolHandlerTest.java
@@ -410,8 +410,8 @@ class PostgresProtocolHandlerTest {
if (session != null) {
PostgresProtocolHandler.bridge(session);
}
- } catch (IOException e) {
- throw new RuntimeException(e);
+ } catch (IOException expected) {
+ // The test closes proxyClient once the handshake succeeds, which ends authenticate.
}
});