mirror of
https://github.com/penpot/penpot.git
synced 2026-09-15 23:31:14 -04:00
🐛 Fix unresolved make-dummy-request in middleware test
The session-renewal test called bare make-dummy-request, which no longer resolves. Qualify it with the existing th alias for backend-tests.helpers, matching every other call site. AI-assisted-by: muse-spark-1.3-contributor
This commit is contained in:
1 parent
3cdf86a253
commit
0487abb2d5
1 file changed
+1
-1
@@ -271,7 +271,7 @@
|
||||
original-exp (:exp (tokens/decode cfg (:token session)))
|
||||
;; Force renewal by setting modified-at to 7 hours ago
|
||||
old-session (assoc session :modified-at (ct/minus (ct/now) (ct/duration {:hours 7})))
|
||||
response (handler (make-dummy-request {:cookies {"auth-token" (:token old-session)}}))
|
||||
response (handler (th/make-dummy-request {:cookies {"auth-token" (:token old-session)}}))
|
||||
{:keys [token claims]} (get response ::http/auth-data)
|
||||
new-exp (:exp claims)]
|
||||
(t/is (some? original-exp) "original token should have :exp")
|
||||
|
||||
Reference in new issue
Block a user