使用postgres testcontainers进行测试

时间:2019-06-02 08:45:25

标签: postgresql spring-boot testcontainers

我正在尝试使用testcontainer启动postgres。 Postgres启动,但是我无法连接到数据库。

Caused by: javax.net.ssl.SSLProtocolException: SSL handshake terminated: ssl=0xa7fc1000: Failure in SSL library, usually a protocol error
2019-06-02 01:26:08.035 20487-20504/com.tecpiranha.rssexample W/System.err: error:1000043e:SSL routines:OPENSSL_internal:TLSV1_ALERT_INAPPROPRIATE_FALLBACK (external/boringssl/src/ssl/s3_pkt.c:610 0xa7f85900:0x00000001)
2019-06-02 01:26:08.035 20487-20504/com.tecpiranha.rssexample W/System.err:     at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
2019-06-02 01:26:08.035 20487-20504/com.tecpiranha.rssexample W/System.err:     at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
2019-06-02 01:26:08.035 20487-20504/com.tecpiranha.rssexample W/System.err:     ... 21 more

当我尝试初始化测试数据库时-无法连接到本地主机:5432

0 个答案:

没有答案