Skip to content

Commit

Permalink
Merge pull request #10 from kilianmh/fix/tests
Browse files Browse the repository at this point in the history
Fix: add universal-time time-zone
  • Loading branch information
jeko2000 authored Apr 6, 2024
2 parents bf1667c + ceba4f4 commit 3084535
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/tiny-routes-middleware-cookie-test.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(defvar *cookie3*
(cookie:make-cookie
:name "name3" :value "value3"
:expires (encode-universal-time 6 22 19 25 1 2002)
:expires (encode-universal-time 6 22 19 25 1 2002 0)
:path "/"
:domain "example.com"
:secure-p t
Expand All @@ -23,7 +23,7 @@
(defvar *cookie4*
(cookie:make-cookie
:name "name4" :value "value4"
:expires (encode-universal-time 6 22 19 25 1 2002)
:expires (encode-universal-time 6 22 19 25 1 2002 0)
:path "/"
:domain "example.com"
:secure-p nil
Expand Down Expand Up @@ -62,7 +62,7 @@
(response (funcall handler mock-request))
(headers (tiny:response-headers response)))
(is (= 4 (length headers)))
(is (string= "name3=value3; Expires=Sat, 26 Jan 2002 00:22:06 GMT; Path=/; Domain=example.com; Secure"
(is (string= "name3=value3; Expires=Fri, 25 Jan 2002 19:22:06 GMT; Path=/; Domain=example.com; Secure"
(second headers)))
(is (string= "name4=value4; Expires=Sat, 26 Jan 2002 00:22:06 GMT; Path=/; Domain=example.com; HttpOnly"
(is (string= "name4=value4; Expires=Fri, 25 Jan 2002 19:22:06 GMT; Path=/; Domain=example.com; HttpOnly"
(fourth headers)))))

0 comments on commit 3084535

Please sign in to comment.