From 7089f04718fad3912e9960f744a6f0008122bccc Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Tue, 20 Feb 2024 10:52:22 -0800 Subject: [PATCH] Change GAE interop tests to use java11 runtime (#10933) The Java 8 runtime is end of support. Leaving this a gae-jdk8 for now. The gae-jdk8 was because AppEngine changed dramatically from Java 7 to Java 8. Nowadays the versions are more in line with OpenJDK and not very different from each other. Fixes #10925 --- .../testing/integration/NettyClientInteropServlet.java | 8 -------- .../gae-jdk8/src/main/webapp/WEB-INF/appengine-web.xml | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/gae-interop-testing/gae-jdk8/src/main/java/io/grpc/testing/integration/NettyClientInteropServlet.java b/gae-interop-testing/gae-jdk8/src/main/java/io/grpc/testing/integration/NettyClientInteropServlet.java index 48978fac0b3..5a388d27ce9 100644 --- a/gae-interop-testing/gae-jdk8/src/main/java/io/grpc/testing/integration/NettyClientInteropServlet.java +++ b/gae-interop-testing/gae-jdk8/src/main/java/io/grpc/testing/integration/NettyClientInteropServlet.java @@ -16,9 +16,6 @@ package io.grpc.testing.integration; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - import io.grpc.Grpc; import io.grpc.ManagedChannelBuilder; import io.grpc.TlsChannelCredentials; @@ -131,14 +128,9 @@ private void doGetHelper(HttpServletResponse resp) throws IOException { public static final class Tester extends AbstractInteropTest { @Override protected ManagedChannelBuilder createChannelBuilder() { - assertEquals( - "jdk8 required", - "1.8", - System.getProperty("java.specification.version")); ManagedChannelBuilder builder = Grpc.newChannelBuilder(INTEROP_TEST_ADDRESS, TlsChannelCredentials.create()) .maxInboundMessageSize(AbstractInteropTest.MAX_MESSAGE_SIZE); - assertTrue(builder instanceof NettyChannelBuilder); ((NettyChannelBuilder) builder) .flowControlWindow(AbstractInteropTest.TEST_FLOW_CONTROL_WINDOW); return builder; diff --git a/gae-interop-testing/gae-jdk8/src/main/webapp/WEB-INF/appengine-web.xml b/gae-interop-testing/gae-jdk8/src/main/webapp/WEB-INF/appengine-web.xml index d8532dfc69e..2fcbe5d8221 100644 --- a/gae-interop-testing/gae-jdk8/src/main/webapp/WEB-INF/appengine-web.xml +++ b/gae-interop-testing/gae-jdk8/src/main/webapp/WEB-INF/appengine-web.xml @@ -13,8 +13,7 @@ --> - true java-gae-interop-test - java8 + java11