diff options
-rw-r--r-- | okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ThreadInterruptTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ThreadInterruptTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ThreadInterruptTest.java index bbb7715..7e7ce0b 100644 --- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ThreadInterruptTest.java +++ b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ThreadInterruptTest.java @@ -23,6 +23,7 @@ import java.io.InterruptedIOException; import java.io.OutputStream; import java.net.HttpURLConnection; import java.util.concurrent.TimeUnit; + import org.junit.Test; import static org.junit.Assert.fail; @@ -32,7 +33,7 @@ public final class ThreadInterruptTest { private final OkHttpClient client = new OkHttpClient(); @Test public void interruptWritingRequestBody() throws Exception { - int requestBodySize = 2 * 1024 * 1024; // 2 MiB + int requestBodySize = 10 * 1024 * 1024; // 10 MiB server.enqueue(new MockResponse() .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps @@ -58,7 +59,7 @@ public final class ThreadInterruptTest { } @Test public void interruptReadingResponseBody() throws Exception { - int responseBodySize = 2 * 1024 * 1024; // 2 MiB + int responseBodySize = 10 * 1024 * 1024; // 10 MiB server.enqueue(new MockResponse() .setBody(new byte[responseBodySize]) |