From 2aaf055b3d9279b8a1d33f30b1bbab1efa1411ee Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Thu, 21 Feb 2013 00:19:44 -0800 Subject: [PATCH] Ensure we test the correct connection instance. --- .../squareup/okhttp/internal/http/HttpResponseCacheTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/squareup/okhttp/internal/http/HttpResponseCacheTest.java b/src/test/java/com/squareup/okhttp/internal/http/HttpResponseCacheTest.java index e54ed21e9..f05ff9e16 100644 --- a/src/test/java/com/squareup/okhttp/internal/http/HttpResponseCacheTest.java +++ b/src/test/java/com/squareup/okhttp/internal/http/HttpResponseCacheTest.java @@ -970,7 +970,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 {