File: postpone-test-expiry.patch

package info (click to toggle)
libhttp-cookiejar-perl 0.010-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 272 kB
  • sloc: perl: 424; makefile: 2
file content (47 lines) | stat: -rw-r--r-- 1,783 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: postpone expiry dates in test suites to 2041
Author: David Golden
Origin: upstream, https://github.com/dagolden/HTTP-CookieJar/commit/7a3b9b163526784bf18a69172df736d190c15940
Bug: https://github.com/dagolden/HTTP-CookieJar/issues/11
Bug-Debian: https://bugs.debian.org/991649
Applied-Upstream: 0.011
Reviewed-by: Étienne Mollier <emollier@debian.org>
Last-Update: 2021-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- libhttp-cookiejar-perl.orig/t/examples.t
+++ libhttp-cookiejar-perl/t/examples.t
@@ -38,7 +38,7 @@
 
 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), "" );
--- libhttp-cookiejar-perl.orig/t/parse.t
+++ libhttp-cookiejar-perl/t/parse.t
@@ -83,19 +83,19 @@
         }
     },
     {
-        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,
         }
     },