lp.bugs.browser.tests.test_bugtask.TestBugTaskView.test_rendered_query_counts_constant_with_team_memberships fails when run by itself
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Francesco Banconi |
Bug Description
This test fails when you run it by itself.
Traceback (most recent call last):
File "/home/
self.
MismatchError: queries do not match: 88 is not > 88
Or in more detail, http://
You can also trigger the failure with some, but not all, tests in the layer running before it. This combination triggers the failure, for instance.
lp.services.
lp.bugs.
It feels like the test is relying on a hot cache of some sort, and when the cache is cold the test fails. I'm not sure what the cache would be, unless the db is not reset after previous tests.
Related branches
- Gary Poster (community): Approve
-
Diff: 17 lines (+6/-1)1 file modifiedlib/lp/bugs/browser/tests/test_bugtask.py (+6/-1)
summary: |
lp.bugs.browser.tests.test_bugtask.TestBugTaskView.test_rendered_query_counts_constant_with_team_memberships - fails rarely/intermittently + fails when run by itself |
description: | updated |
Changed in launchpad: | |
assignee: | nobody → Francesco Banconi (frankban) |
Changed in launchpad: | |
status: | Triaged → In Progress |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r15301 (http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 15301) by a commit, but not testable.