diff options
Diffstat (limited to 'jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java')
-rw-r--r-- | jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java b/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java index 6416d11f523..1fb1f3658ee 100644 --- a/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java +++ b/jdisc_http_service/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java @@ -353,13 +353,21 @@ public class HttpServerTest { .setDiscard(true) .setDomain(".localhost") .setHttpOnly(true) + .setMaxAge(5000, TimeUnit.SECONDS) .setPath("/foopath") .setSecure(true) .setVersion(2))); driver.client().get("/status.html") .expectStatusCode(is(OK)) - .expectHeader("Set-Cookie", - is("foo=bar; Path=/foopath; Domain=.localhost; Secure; HTTPOnly")); + .expectHeader("Set-Cookie", is("foo=bar; " + + "Max-Age=5000; " + + "Path=\"/foopath\"; " + + "Domain=.localhost; " + + "Secure; HTTPOnly; " + + "Comment=\"comment yeah\"; " + + "Version=1; " + + "CommentURL=\"http://comment.yes/\"; " + + "Discard")); assertThat(driver.close(), is(true)); } |