Logging and then opening a new page in Windmill tests sometimes doesn't work

Bug #487657 reported by Björn Tillenius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

If you have code such as....

        client = WindmillTestClient('Bug test')
        lpuser.NO_PRIV.ensure_login(client)
        client.open(url='http://bugs.launchpad.dev:8085/bugs/1')

... it sometimes happens that you are logged out after opening the page. This could have something to do with the way we reset the db between tests, since I think I've never seen this for the first test, or when run standalone.

Revision history for this message
Björn Tillenius (bjornt) wrote :

Actually, what probably happens is that the previous test already was logged in as the same user. The ensure_login() method will look at the page, see that the user is already logged in, and thus won't try to log in again. But since we reset the db, the user is actually logged out.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.