Issue Bug Rejected

#25675Make scheduler's execution class fully testable

Marcus Krause 11/10/10, 16:36 updated 12/10/13, 01:27

Description

classtx_scheduler_Execution uses current timestamp as basis for execution calculations . This makes it hard to write testcases to this method. Those should ideally work with a fixed date to get simple expected results for testcases.

Solution:
Use global EXEC_TIME by default (set in constructor) and add getter/setter to modify the time.

Note:
Using global EXEC_TIME instead of several time() function calls should even have an positive perfomance impact.

(issue imported from #M16333)

Reviews 1