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

Merge pull request #123 from square/jw/test-fixes

Ensure we test the correct connection instance.
This commit is contained in:
Jesse Wilson
2013-02-21 01:20:01 -08:00

View File

@@ -971,7 +971,7 @@ public final class HttpResponseCacheTest {
assertEquals("A", readAscii(openConnection(server.getUrl("/"))));
URLConnection connection = openConnection(server.getUrl("/"));
connection.addRequestProperty("Cache-Control", "only-if-cached");
assertEquals("A", readAscii(openConnection(server.getUrl("/"))));
assertEquals("A", readAscii(connection));
}
@Test public void requestOnlyIfCachedWithConditionalResponseCached() throws IOException {