metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Foley (JIRA)" <>
Subject [jira] [Created] (METRON-764) DST bug in metron-profiler-client Unit Tests
Date Tue, 14 Mar 2017 20:43:41 GMT
Matt Foley created METRON-764:

             Summary: DST bug in metron-profiler-client Unit Tests
                 Key: METRON-764
             Project: Metron
          Issue Type: Bug
            Reporter: Matt Foley
            Priority: Critical

There is a Daylight Savings Time bug in the Unit Tests for metron-profiler-client.  Here's
how to repro:

* On a Mac, during daytime, clone Metron and build master branch, including unit tests to
confirm they work okay:
** mvn clean install
* Now go into System Preferences, select "Date & Time", select left-most tab (also labeled
"Date & Time"), and click the lock icon in the lower left to unlock the time settings.
* Deselect the "set automatically" checkbox, then set the time and date to approximately 12:30AM
on 3/14/2017, your local timezone.
* Click save and lock.
* Now run the unit tests just for metron-profiler-client:
** mvn install -rf :metron-profiler-client
* They fail with:
Failed tests: 
  WindowProcessorTest.testRepeatWithWeekdayExclusion:212 expected:<2> but was:<1>
  WindowProcessorTest.testRepeatWithWeekendExclusion:175 expected:<5> but was:<6>
Tests run: 41, Failures: 2, Errors: 0, Skipped: 0
* Reverse the clock settings to get back to actual time with automatic settings.
* Run "mvn install -rf :metron-profiler-client" again and it passes.

This message was sent by Atlassian JIRA

View raw message