From 6a0b450d9f685885aeb04c0ac4105aab129439ad Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Tue, 15 Oct 2024 21:36:01 +0530 Subject: [PATCH] able to reproduce error --- test/session.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/session.test.js b/test/session.test.js index 5ec4a22eb..2573b7287 100644 --- a/test/session.test.js +++ b/test/session.test.js @@ -285,7 +285,7 @@ describe(`session: ${printPath("[test/session.test.js]")}`, function () { let res2 = await new Promise((resolve) => request(app) .post("/auth/session/refresh") - .set("Cookie", ["sAccessToken=" + res.accessToken + ";custom=" + ""]) + .set("Cookie", ["sAccessToken=" + res.accessToken + ";custom=" + JSON.stringify({ a: "b%b" })]) .set("anti-csrf", res.antiCsrf) .end((err, res) => { if (err) {