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. } });