From 821415a91618f0490d6a8c9144390d6f2e003369 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 5 Jul 2018 15:19:54 +0200 Subject: [PATCH] Test stabilization: Freezed time to avoid timing issue while decimal minutes block changes. --- test/unit/job_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/job_test.rb b/test/unit/job_test.rb index 9000e312e..876b3726d 100644 --- a/test/unit/job_test.rb +++ b/test/unit/job_test.rb @@ -150,7 +150,11 @@ class JobTest < ActiveSupport::TestCase assert_not(job1.executable?) assert_not(job1.in_timeplan?) - time = Time.zone.now + + time = Time.zone.now + # "freeze" time to avoid timing issues + travel_to(time) + day_map = { 0 => 'Sun', 1 => 'Mon',