Skip to content

Commit 9a6aa07

Browse files
authored
fix: Skip logout endpoint in e2e (#7089)
1 parent b9ea92a commit 9a6aa07

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/common/stores/account-store.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ const controller = {
357357
return
358358
}
359359

360-
data.post(`${Project.api}auth/logout/`, {}
360+
//Skip logout in E2E since parallel sessions may be using a shared token
361+
;(E2E
362+
? Promise.resolve()
363+
: data.post(`${Project.api}auth/logout/`, {})
361364
).finally(() => {
362365
API.setCookie('t', '')
363366
data.setToken(null)

0 commit comments

Comments
 (0)