You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow debugging of Utility::GetTime
So we can run unit tests that expect a certain behavior based on time.
When Icinga 2 is compiled with I2_DEBUG one can use Utility::SetTime to
override the current system time, and lock it to this value.
refs #11875
Allow debugging of Utility::GetTime
So we can run unit tests that expect a certain behavior based on time.
When Icinga 2 is compiled with I2_DEBUG one can use Utility::SetTime to
override the current system time, and lock it to this value.
fixes #11875
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11875
Created by mfrosch on 2016-06-01 13:35:07 +00:00
Assignee: mfrosch
Status: Resolved (closed on 2016-06-09 12:30:04 +00:00)
Target Version: 2.5.0
Last Update: 2016-06-09 12:30:04 +00:00 (in Redmine)
There is no way to manipulate time in a unit test of any sort.
I'll push a branch with a change that will add new functionality to Utility for setting time on demand.
To be used with I2_DEBUG enabled and only on demand.
Changesets
2016-06-01 13:35:36 +00:00 by (unknown) 9104e18
2016-06-09 12:25:51 +00:00 by (unknown) a5abe1a
Relations:
The text was updated successfully, but these errors were encountered: