Skip to content

Commit

Permalink
Change test cookie expiration dates from 2021 to 2041
Browse files Browse the repository at this point in the history
Fixes #11.
  • Loading branch information
xdg committed Jun 15, 2021
1 parent 8e443ec commit 7a3b9b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion t/examples.t
Expand Up @@ -38,7 +38,7 @@ subtest "wrong path" => sub {

subtest "expiration" => sub {
$jar->clear;
$jar->add( $req, "lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GMT" );
$jar->add( $req, "lang=en-US; Expires=Sun, 09 Jun 2041 10:18:14 GMT" );
is( $jar->cookie_header($req), "lang=en-US" );
$jar->add( $req, "lang=; Expires=Sun, 06 Nov 1994 08:49:37 GMT" );
is( $jar->cookie_header($req), "" );
Expand Down
8 changes: 4 additions & 4 deletions t/parse.t
Expand Up @@ -83,19 +83,19 @@ my @cases = (
}
},
{
cookie => "lang=en-US; Expires = Wed, 09 Jun 2021 10:18:14 GMT",
cookie => "lang=en-US; Expires = Sun, 09 Jun 2041 10:18:14 GMT",
parse => {
name => "lang",
value => "en-US",
expires => 1623233894,
expires => 2254385894,
}
},
{
cookie => "lang=en-US; Expires = Wed, 09 Jun 2021 10:18:14 GMT; Max-Age=3600",
cookie => "lang=en-US; Expires = Sun, 09 Jun 2041 10:18:14 GMT; Max-Age=3600",
parse => {
name => "lang",
value => "en-US",
expires => 1623233894,
expires => 2254385894,
'max-age' => 3600,
}
},
Expand Down

0 comments on commit 7a3b9b1

Please sign in to comment.