File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
google-http-client/src/test/java/com/google/api/client/http/javanet Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com .google .api .client .http .javanet ;
16
16
17
+ import static org .junit .Assume .assumeThat ;
18
+
17
19
import com .google .api .client .http .GenericUrl ;
18
20
import com .google .api .client .http .HttpTransport ;
19
21
import com .google .api .client .testing .http .HttpTesting ;
31
33
import java .net .InetSocketAddress ;
32
34
import java .net .URL ;
33
35
import java .security .KeyStore ;
36
+ import java .util .Arrays ;
34
37
import java .util .concurrent .ExecutorService ;
35
38
import java .util .concurrent .Executors ;
36
39
import junit .framework .TestCase ;
40
+ import org .hamcrest .CoreMatchers ;
41
+ import org .hamcrest .core .Is ;
37
42
import org .junit .Test ;
38
43
39
44
/**
@@ -195,6 +200,10 @@ public void close() {
195
200
196
201
@ Test (timeout = 10_000L )
197
202
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 ));
198
207
// This handler waits for 100s before returning writing content. The test should
199
208
// timeout if disconnect waits for the response before closing the connection.
200
209
final HttpHandler handler =
You can’t perform that action at this time.
0 commit comments