From 94873c33e1fc96e7ae11f5c9ad68ea600b33fec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 8 Feb 2026 19:21:35 -0500 Subject: [PATCH] test: another test fix --- test/authentication.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/authentication.js b/test/authentication.js index 0e3cfc79ca..b1fbf66b32 100644 --- a/test/authentication.js +++ b/test/authentication.js @@ -140,11 +140,11 @@ describe('authentication', () => { it('should regenerate the session identifier on successful login', async () => { const matchRegexp = /express\.sid=s%3A(.+?);/; - const { hostname, path } = new URL(nconf.get('url')); - const sid = String(jar.store.idx[hostname][path]['express.sid']).match(matchRegexp)[1]; + const { hostname, pathname } = new URL(nconf.get('url')); + const sid = String(jar.store.idx[hostname][pathname]['express.sid']).match(matchRegexp)[1]; await helpers.logoutUser(jar); const newJar = (await helpers.loginUser('regular', 'regularpwd')).jar; - const newSid = String(newJar.store.idx[hostname][path]['express.sid']).match(matchRegexp)[1]; + const newSid = String(newJar.store.idx[hostname][pathname]['express.sid']).match(matchRegexp)[1]; assert.notStrictEqual(newSid, sid); });