summaryrefslogtreecommitdiffstats
path: root/luni/src/test
diff options
context:
space:
mode:
authorWei Liu <luciferleo@google.com>2014-12-08 17:30:38 -0800
committerNarayan Kamath <narayan@google.com>2014-12-09 10:32:41 +0000
commit7cb815a5ab810fe4931b56a0d58580da7d0025e0 (patch)
tree7037eb6cc4f2754319770ec2db4f1214fabf8dcb /luni/src/test
parentf696c24c1bce78c80bdab80c53089eabaa5f814f (diff)
downloadlibcore-7cb815a5ab810fe4931b56a0d58580da7d0025e0.zip
libcore-7cb815a5ab810fe4931b56a0d58580da7d0025e0.tar.gz
libcore-7cb815a5ab810fe4931b56a0d58580da7d0025e0.tar.bz2
Fix libcore.java.net.OldCookieHandlerTest#test_get_put()
Bug: 18619181 (cherry picked from commit 065ee8445cd5b9041d5643ab3313bdd09b75dc10) Change-Id: I7aebb476011421f50e28eba2c02c1e2702c9df99
Diffstat (limited to 'luni/src/test')
-rw-r--r--luni/src/test/java/libcore/java/net/OldCookieHandlerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/test/java/libcore/java/net/OldCookieHandlerTest.java b/luni/src/test/java/libcore/java/net/OldCookieHandlerTest.java
index 6992cae..0e11d50 100644
--- a/luni/src/test/java/libcore/java/net/OldCookieHandlerTest.java
+++ b/luni/src/test/java/libcore/java/net/OldCookieHandlerTest.java
@@ -41,6 +41,7 @@ public class OldCookieHandlerTest extends TestCase {
CookieHandler.setDefault(mch);
MockWebServer server = new MockWebServer();
+ server.play();
server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=\"android\"; "
+ "Comment=\"this cookie is delicious\"; "
+ "CommentURL=\"http://google.com/\"; "
@@ -51,7 +52,6 @@ public class OldCookieHandlerTest extends TestCase {
+ "Port=\"80,443," + server.getPort() + "\"; "
+ "Secure; "
+ "Version=\"1\""));
- server.play();
URLConnection connection = server.getUrl("/path/foo").openConnection();
connection.getContent();