Working in my time zone, I sometimes trigger the tests near utc midnight. As a result, comparisons like
TimeOfDay.now < (Time.now + 5*60).strftime('%H:%M:%S') would return false when now >= 23:55:00. This would cause the test to fail when running within this 5-minute window before midnight.
So I shifted the test to comparing TimeOfDay.noon against static time strings
Fix #576
Working in my time zone, I sometimes trigger the tests near utc midnight. As a result, comparisons like
TimeOfDay.now < (Time.now + 5*60).strftime('%H:%M:%S')
would returnfalse
when now >=23:55:00
. This would cause the test to fail when running within this 5-minute window before midnight.So I shifted the test to comparing TimeOfDay.noon against static time strings