aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2024-04-11 14:42:31 +0100
committerPete Bentley <prb@google.com>2024-04-11 14:42:31 +0100
commitba843e0838d1dae3f66ba128902c37ad8f9e39ba (patch)
tree85e067b4d3c8ab795474825c7038eb63d22dee40
parent2b371f2e6a6f4ff6f74d15e5ec384b713dfc624f (diff)
downloadokhttp-ba843e0838d1dae3f66ba128902c37ad8f9e39ba.tar.gz
Disable flakey okhttp tests pending investigation.
Bug: 333847678 Test: atest CtsLibcoreOkHttpTestCases Change-Id: Ibd5025776c517463198009a3b53bf83dd08b790c
-rw-r--r--okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java5
-rw-r--r--okhttp-tests/src/test/java/com/squareup/okhttp/URLConnectionTest.java4
-rw-r--r--okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/Http2ConnectionTest.java5
3 files changed, 11 insertions, 3 deletions
diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
index 605ca68..a6322d2 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
@@ -70,6 +70,7 @@ import okio.GzipSink;
import okio.Okio;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
@@ -1640,7 +1641,9 @@ public final class CallTest {
return new InetSocketAddress(address.getAddress(), nullServer.getLocalPort());
}
- @Test public void cancelTagImmediatelyAfterEnqueue() throws Exception {
+ @Test
+ @Ignore("TODO(b/333847678 - diagnose and fix flake")
+ public void cancelTagImmediatelyAfterEnqueue() throws Exception {
server.enqueue(new MockResponse());
Call call = client.newCall(new Request.Builder()
.url(server.url("/a"))
diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/URLConnectionTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/URLConnectionTest.java
index 1976523..aa0b5c2 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/URLConnectionTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/URLConnectionTest.java
@@ -408,7 +408,9 @@ public final class URLConnectionTest {
testServerClosesOutput(SHUTDOWN_INPUT_AT_END);
}
- @Test public void serverShutdownOutput() throws Exception {
+ @Test
+ @Ignore("TODO(b/333847678 - diagnose and fix flake")
+ public void serverShutdownOutput() throws Exception {
testServerClosesOutput(SHUTDOWN_OUTPUT_AT_END);
}
diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/Http2ConnectionTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/Http2ConnectionTest.java
index 607b0b5..ee7f94a 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/Http2ConnectionTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/Http2ConnectionTest.java
@@ -28,6 +28,7 @@ import okio.BufferedSource;
import okio.Okio;
import okio.Source;
import org.junit.After;
+import org.junit.Ignore;
import org.junit.Test;
import static com.squareup.okhttp.TestUtil.headerEntries;
@@ -96,7 +97,9 @@ public final class Http2ConnectionTest {
}
}
- @Test public void peerHttp2ServerLowersInitialWindowSize() throws Exception {
+ @Test
+ @Ignore("TODO(b/333847678 - diagnose and fix flake")
+ public void peerHttp2ServerLowersInitialWindowSize() throws Exception {
try (MockSpdyPeer peer = new MockSpdyPeer()) {
peer.setVariantAndClient(HTTP_2, false);