]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fixed test_multiple_set_cookie (#1270)
authorcdeler <serj.krotov@gmail.com>
Wed, 9 Sep 2020 09:01:39 +0000 (12:01 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Sep 2020 09:01:39 +0000 (10:01 +0100)
* Fixed test_multiple_set_cookie

* Update test_cookies.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
tests/models/test_cookies.py

index 12d0fb5ae972eb033e2ca6f4553aeb6f92dee186..980278122c1ae725f42be06ab206a7c212faee70 100644 (file)
@@ -57,7 +57,7 @@ def test_multiple_set_cookie():
     headers = [
         (
             b"Set-Cookie",
-            b"1P_JAR=2020-08-09-18; expires=Tue, 08-Sep-2020 18:33:35 GMT; "
+            b"1P_JAR=2020-08-09-18; expires=Tue, 08-Sep-2099 18:33:35 GMT; "
             b"path=/; domain=.example.org; Secure",
         ),
         (
@@ -65,7 +65,7 @@ def test_multiple_set_cookie():
             b"NID=204=KWdXOuypc86YvRfBSiWoW1dEXfSl_5qI7sxZY4umlk4J35yNTeNEkw15"
             b"MRaujK6uYCwkrtjihTTXZPp285z_xDOUzrdHt4dj0Z5C0VOpbvdLwRdHatHAzQs7"
             b"7TsaiWY78a3qU9r7KP_RbSLvLl2hlhnWFR2Hp5nWKPsAcOhQgSg; expires=Mon, "
-            b"08-Feb-2021 18:33:35 GMT; path=/; domain=.example.org; HttpOnly",
+            b"08-Feb-2099 18:33:35 GMT; path=/; domain=.example.org; HttpOnly",
         ),
     ]
     request = httpx.Request("GET", "https://www.example.org")