Test stabilization: Freezed time to avoid timing issue while decimal minutes block changes.

This commit is contained in:
Thorsten Eckel 2018-07-05 15:19:54 +02:00
parent 7bb7e7a438
commit 821415a916

View file

@ -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',