boc-tothefuture / openhab-jruby

JRuby Libraries for Openhab
Eclipse Public License 2.0
6 stars 9 forks source link

test: add http readiness check #578

Closed jimtng closed 2 years ago

jimtng commented 2 years ago

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 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

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 4.38.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: