Test stabilization: Freezed time to avoid timing issue while decimal minutes block changes.
This commit is contained in:
parent
7bb7e7a438
commit
821415a916
1 changed files with 5 additions and 1 deletions
|
@ -150,7 +150,11 @@ class JobTest < ActiveSupport::TestCase
|
||||||
assert_not(job1.executable?)
|
assert_not(job1.executable?)
|
||||||
|
|
||||||
assert_not(job1.in_timeplan?)
|
assert_not(job1.in_timeplan?)
|
||||||
time = Time.zone.now
|
|
||||||
|
time = Time.zone.now
|
||||||
|
# "freeze" time to avoid timing issues
|
||||||
|
travel_to(time)
|
||||||
|
|
||||||
day_map = {
|
day_map = {
|
||||||
0 => 'Sun',
|
0 => 'Sun',
|
||||||
1 => 'Mon',
|
1 => 'Mon',
|
||||||
|
|
Loading…
Reference in a new issue