Skip to content

Commit a74d12c

Browse files
committed
Revert "disable testDisconnectShouldNotWaitToReadResponse for JDK >= 23"
This reverts commit e2c988e.
1 parent 42958ef commit a74d12c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

google-http-client/src/test/java/com/google/api/client/http/javanet/NetHttpTransportTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
package com.google.api.client.http.javanet;
1616

17-
import static org.junit.Assume.assumeThat;
18-
1917
import com.google.api.client.http.GenericUrl;
2018
import com.google.api.client.http.HttpTransport;
2119
import com.google.api.client.testing.http.HttpTesting;
@@ -33,12 +31,9 @@
3331
import java.net.InetSocketAddress;
3432
import java.net.URL;
3533
import java.security.KeyStore;
36-
import java.util.Arrays;
3734
import java.util.concurrent.ExecutorService;
3835
import java.util.concurrent.Executors;
3936
import junit.framework.TestCase;
40-
import org.hamcrest.CoreMatchers;
41-
import org.hamcrest.core.Is;
4237
import org.junit.Test;
4338

4439
/**
@@ -200,10 +195,6 @@ public void close() {
200195

201196
@Test(timeout = 10_000L)
202197
public void testDisconnectShouldNotWaitToReadResponse() throws IOException {
203-
// This test does not behave as expected since JDK 23
204-
// see https://bugs.openjdk.org/browse/JDK-6968351
205-
int javaVersion = Integer.parseInt(System.getProperty("java.version").split("\\.")[0]);
206-
assumeThat(javaVersion < 23, CoreMatchers.is(true));
207198
// This handler waits for 100s before returning writing content. The test should
208199
// timeout if disconnect waits for the response before closing the connection.
209200
final HttpHandler handler =

0 commit comments

Comments
 (0)