diff --git a/mistral/tests/unit/engine/test_cron_trigger.py b/mistral/tests/unit/engine/test_cron_trigger.py index a0c5fdce0..5bfeef1a9 100644 --- a/mistral/tests/unit/engine/test_cron_trigger.py +++ b/mistral/tests/unit/engine/test_cron_trigger.py @@ -192,10 +192,10 @@ class ProcessCronTriggerTest(base.EngineTestCase): cron_trigger_db = db_api.get_cron_trigger(trigger_name) self.assertIsNotNone(cron_trigger_db) - self.assertEqual( - next_time, - cron_trigger_db.next_execution_time - ) + + interval = (cron_trigger_db.next_execution_time - next_time) + + self.assertLessEqual(interval.total_seconds(), 3.0) def test_validate_cron_trigger_input_first_time(self): cfg.CONF.set_default('auth_enable', False, group='pecan')