1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-14 07:22:20 +03:00

Testing fix/workaround for missingPongsFailsConnection with JDK12 (#5584)

This commit is contained in:
Yuri Schimke
2019-11-09 17:24:37 +00:00
committed by GitHub
parent c20c3a99ac
commit 0545ff6345

View File

@@ -112,12 +112,12 @@ public final class HttpOverHttp2Test {
return asList(Protocol.H2_PRIOR_KNOWLEDGE, Protocol.HTTP_2);
}
private PlatformRule platform = new PlatformRule();
private final PlatformRule platform = new PlatformRule();
private final OkHttpClientTestRule clientTestRule = new OkHttpClientTestRule();
@Rule public final TestRule chain =
RuleChain.outerRule(platform).around(new Timeout(5, SECONDS));
RuleChain.outerRule(platform).around(clientTestRule).around(new Timeout(5, SECONDS));
@Rule public final TemporaryFolder tempDir = new TemporaryFolder();
@Rule public final MockWebServer server = new MockWebServer();
@Rule public final OkHttpClientTestRule clientTestRule = new OkHttpClientTestRule();
private OkHttpClient client;
private Cache cache;