Ticket #499 (closed defect: fixed)
testNightly unit test fails
| Reported by: | ipv6guru | Owned by: | dustin |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.11 |
| Version: | 0.7.10 | Keywords: | sourceforge 1530139 |
| Cc: |
Description
the testNightly unit test fails when run on a system where DST is during November (e.g, TZ=Australia/Melbourne?):
[FAIL]: buildbot.test.test_scheduler.Scheduling.testNightly
File "src/buildbot-0.7.3/buildbot/test/test_scheduler.py", line 58, in testNightly self.failUnlessEqual(int(t-now), 2*HOUR+54*MIN+24) twisted.trial.unittest.FailTest?: 6864 != 10464
This can be resolved by invoking time.mktime() in buildbot/test/test_scheduler.py::testNightly() with -1 instead of 0 as the ninth argument. I.e: now = time.mktime((2005, 11, 15, 0, 5, 36, 1, 319, -1))
Submitted: Luke Mewburn ( lukem ) - 2006-07-28 13:35
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)