Skip to content
Snippets Groups Projects
Commit 2e2bacf8 authored by Xavier-Do's avatar Xavier-Do
Browse files

[FIX] tests: ensure that previous user is logged off in authenticate


In some case, a browser_js test with login "None" following a browser_js
test with a defined login could result in the second test being executed
with the previous user.

This was caused by a race condition, a request response comming back
to chrome just after browser clear, restoring the old cookie.
(All odoo request have the set_cookie flag set in order to refresh
cookie timeout)

The solution here is to check one more time for cookie in authenticate,
but also to remove HTTPCase session from session_store. This will
only be effective when calling browser_js without login in the same
HTTPCase .

closes odoo/odoo#39424

Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
parent a30e0380
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment