Opened 13 years ago

Closed 13 years ago

#16780 closed Cleanup/optimization (fixed)

Timing sensitivity in templates regression tests

Reported by: Russell Keith-Magee Owned by: nobody
Component: Template system Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The templates regression tests uses a TestObj that has a sleep embedded in it; the tests for template loading and rendering then perform a timing check to ensure that the "bad" code doesn't run.

However, this is fragile; system conditions on the test box can cause the test to fail. E.g., if the disk is thrashing, a template will take longer to load.

Change History (1)

comment:1 by Russell Keith-Magee, 13 years ago

Resolution: fixed
Status: newclosed

In [16735]:

Fixed #16780 -- Removed a timing sensitive test from the template test suite. Thanks to Alex for the lend of his eyeballs.

Note: See TracTickets for help on using tickets.
Back to Top