From 6da286c22be8aca89ffd4b6bed4d1f8895a766c7 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 24 Oct 2022 15:07:25 -0400 Subject: [PATCH] test: abort controller for interstitials --- test/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers.js b/test/controllers.js index ab2f7202c1..673cf60757 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -627,7 +627,7 @@ describe('Controllers', () => { }); assert.strictEqual(res.statusCode, 302); - assert.strictEqual(res.headers['set-cookie'][0], 'express.sid=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax'); + assert.strictEqual(res.headers['set-cookie'][0], `express.sid=; Path=${nconf.get('relative_path') || '/'}; Expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax`); assert.strictEqual(res.headers.location, `${nconf.get('relative_path')}/`); });