From 61297dba0276ac84ae0cec69e796308753accefb Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Corvo Date: Mon, 2 Dec 2024 15:05:26 -0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Add=20await=20to=20i?= =?UTF-8?q?nvalidSession=20within=20admin=20(#2599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/tests/acceptance/accounts/change-password-test.js | 2 +- ui/admin/tests/acceptance/authentication-test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/admin/tests/acceptance/accounts/change-password-test.js b/ui/admin/tests/acceptance/accounts/change-password-test.js index 0c7c63f32..3d7a86829 100644 --- a/ui/admin/tests/acceptance/accounts/change-password-test.js +++ b/ui/admin/tests/acceptance/accounts/change-password-test.js @@ -161,7 +161,7 @@ module('Acceptance | accounts | change password', function (hooks) { }); test('cannot change password when not authenticated', async function (assert) { - invalidateSession(); + await invalidateSession(); await visit(urls.changePassword); diff --git a/ui/admin/tests/acceptance/authentication-test.js b/ui/admin/tests/acceptance/authentication-test.js index d3224452a..7b10d4950 100644 --- a/ui/admin/tests/acceptance/authentication-test.js +++ b/ui/admin/tests/acceptance/authentication-test.js @@ -66,8 +66,8 @@ module('Acceptance | authentication', function (hooks) { let sessionsURL; let targetsURL; - hooks.beforeEach(function () { - invalidateSession(); + hooks.beforeEach(async function () { + await invalidateSession(); indexURL = '/'; globalScope = this.server.create('scope', { id: 'global' }); orgScope1 = this.server.create(