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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user