File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
http-clients/aws-crt-client/src/test/java/software/amazon/awssdk/http/crt Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import static software .amazon .awssdk .http .SdkHttpConfigurationOption .TRUST_ALL_CERTIFICATES ;
19
19
20
- import software . amazon . awssdk . crt . io . EventLoopGroup ;
21
- import software . amazon . awssdk . crt . io . HostResolver ;
20
+ import org . junit . AfterClass ;
21
+ import org . junit . BeforeClass ;
22
22
import software .amazon .awssdk .http .SdkAsyncHttpClientH1TestSuite ;
23
23
import software .amazon .awssdk .http .async .SdkAsyncHttpClient ;
24
24
import software .amazon .awssdk .utils .AttributeMap ;
28
28
*/
29
29
public class H1ServerBehaviorTest extends SdkAsyncHttpClientH1TestSuite {
30
30
31
+ private static final String JDK_TLS_CLIENT_PROTOCOLS = "jdk.tls.client.protocols" ;
32
+
33
+ @ BeforeClass
34
+ public static void setUp () {
35
+ // TODO: remove this once the dependency is fixed
36
+ System .setProperty (JDK_TLS_CLIENT_PROTOCOLS , "TLSv1.2" );
37
+ }
38
+
39
+ @ AfterClass
40
+ public static void cleanUp () {
41
+ System .clearProperty (JDK_TLS_CLIENT_PROTOCOLS );
42
+ }
43
+
31
44
@ Override
32
45
protected SdkAsyncHttpClient setupClient () {
33
46
return AwsCrtAsyncHttpClient .builder ()
You can’t perform that action at this time.
0 commit comments