From 6eaa12ff1a5e1389480376eb9ef7b83dad5c3780 Mon Sep 17 00:00:00 2001 From: Alexander Scheel Date: Tue, 6 Oct 2020 09:32:16 -0400 Subject: [PATCH] Disable ALPN tests until server-side supports it Signed-off-by: Alexander Scheel --- org/mozilla/jss/tests/TestSSLEngine.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org/mozilla/jss/tests/TestSSLEngine.java b/org/mozilla/jss/tests/TestSSLEngine.java index df1a29ebd..9a269dfed 100644 --- a/org/mozilla/jss/tests/TestSSLEngine.java +++ b/org/mozilla/jss/tests/TestSSLEngine.java @@ -1002,7 +1002,8 @@ public static void testALPNHandshake(SSLContext ctx, String server_alias) throws try { testBasicHandshake(client_eng, server_eng, false); - assert(server_eng.getApplicationProtocol().equals("h2")); + assert client_eng.getApplicationProtocol().equals("h2"); + assert server_eng.getApplicationProtocol().equals("h2"); } catch (Exception e) { client_eng.cleanup(); server_eng.cleanup(); @@ -1033,7 +1034,9 @@ public static void testNativeClientServer(String[] args) throws Exception { testAllHandshakes(ctx, client_alias, server_alias, true); testPostHandshakeAuth(ctx, client_alias, server_alias); testJSSEToJSSHandshakes(ctx, server_alias); - testALPNHandshake(ctx, server_alias); + + // TODO: Enable once server-side ALPN support is merged. + // testALPNHandshake(ctx, server_alias); } public static void testALPNEncoding() throws Exception {