Merge lp://staging/~al-maisan/launchpad/spurious-tests-525329 into lp://staging/launchpad/db-devel
Proposed by
Muharem Hrnjadovic
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp://staging/~al-maisan/launchpad/spurious-tests-525329 |
Merge into: | lp://staging/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://staging/~al-maisan/launchpad/spurious-tests-525329 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+20233@code.staging.launchpad.net |
To post a comment you must log in.
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.