graylog-labs / graylog-plugin-pagerduty

A Graylog plugin that triggers PagerDuty events
https://www.graylog.org/
GNU General Public License v3.0
11 stars 11 forks source link

Fix a fragile JUnit which would only succeed when run in UTC-6 TZ #14

Closed waab76 closed 4 years ago

waab76 commented 4 years ago

The MessageFactoryTest JUnit was attempting to match on hard-coded local timestamp strings whereas the code generates timestamps based on the local timezone. This caused the JUnit to fail when not run in the UTC-6 timezone.