Skip to content

Commit 39f8169

Browse files
committed
Polishing
Add blockhound exclusions for SSL context setup [#159]
1 parent 33e90fc commit 39f8169

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/io/r2dbc/mssql/util/BlockhoundExceptions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package io.r2dbc.mssql.util;
1818

19+
import io.r2dbc.mssql.client.ssl.TdsSslHandler;
1920
import reactor.blockhound.BlockHound;
2021
import reactor.blockhound.integration.BlockHoundIntegration;
2122

@@ -26,5 +27,6 @@ public class BlockhoundExceptions implements BlockHoundIntegration {
2627
@Override
2728
public void applyTo(BlockHound.Builder builder) {
2829
builder.allowBlockingCallsInside(SecureRandom.class.getName(), "next");
30+
builder.allowBlockingCallsInside(TdsSslHandler.class.getName(), "createSslHandler");
2931
}
3032
}

0 commit comments

Comments
 (0)