Merge lp:~al-maisan/launchpad/spurious-tests-525329 into lp:launchpad/db-devel
Proposed by
Muharem Hrnjadovic
on 2010-02-26
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2010-03-02 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | not available |
| Proposed branch: | lp:~al-maisan/launchpad/spurious-tests-525329 |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
123 lines (+34/-12) 2 files modified
lib/lp/soyuz/model/buildqueue.py (+10/-4) lib/lp/soyuz/tests/test_buildqueue.py (+24/-8) |
| To merge this branch: | bzr merge lp:~al-maisan/launchpad/spurious-tests-525329 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2010-02-26 | Approve on 2010-03-02 |
|
Review via email:
|
|||
To post a comment you must log in.
| Muharem Hrnjadovic (al-maisan) wrote : | # |
review:
Approve
(code)

Hello,
quite a few tests that predict times or durations failed in spurious
fashion in the last few days.
The branch at hand introduces a BuildQueue._now() method that is used by the
BuildQueue code under test while enabling the unit tests to "monkey-patch"
that method and have it return a constant time in order to facilitate the
testing process.
This is based on an idea of Julian's.
Tests to run:
bin/test -vv -t test_buildqueue
No "make lint" errors or warnings.