I've been struggling to figure out what might be going on here and have no idea. If I run any Simpletest that should pass- let's say the Actions Configuration test- it will pass about half of the time, and fail the other half.

When it fails, it is because the test user cannot log in, or the test user logs in and then seems to get logged out spontaneously. For instance, in one run, User gD9d3Utl successfully logged in. fails, and the verbose message shows the error that the username or password was wrong. In another run, User gD9d3Utl successfully logged in. succeeds, but visits to subsequent pages requiring login result in a 403, and the verbose message shows that the user is no longer logged in.

Any clue what might be happening here?

Comments

danepowell’s picture

The simpletest user can be spontaneously logged out at any point- sometimes, several assertions will succeed before the user is inexplicably logged out. And then if I re-run the test, everything will work fine. And if I run it again, the user doesn't successfully log in at all. Etc...

I've tried disabling cron on the site, switching to the basic test profile and disabling all modules, cleared caches... nothing seems to help.

danepowell’s picture

Version: 7.10 » 7.12

Still an issue in 7.12

damien tournoud’s picture

If you are running tests on a cluster of servers, it might just be the simpletest access key not being valid on the server the request is processed on.

danepowell’s picture

Thanks for the suggestion, but this is just a single server. What's really odd is how intermittent the sign-outs are, happening seemingly randomly from one test run to the next.

valthebald’s picture

Status: Active » Postponed (maintainer needs more info)

That's too vague description of a problem, any steps to reproduce it?

jkingsnorth’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response for a long time, so closing this issue. Please reopen if it is still a problem.