[ 
https://issues.apache.org/jira/browse/FALCON-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14970025#comment-14970025
 ] 

Balu Vellanki commented on FALCON-1553:
---------------------------------------

[~pallavi.rao] : Changing test to following works.

{code}
    @DataProvider(name = "frequencies")
    public Object[][] getTestFrequencies() {
        DateTimeFormatter formatter = DateTimeFormat.forPattern("dd/MM/yyyy 
HH:mm:ss x");
        return new Object[][] {
            {DateTime.now(), new Frequency("minutes(10)"), 10*60*1000L},
            {DateTime.now(), new Frequency("hours(6)"), 6*60*60*1000L},
            // Feb of leap year
            {formatter.parseDateTime("04/02/2012 14:00:00 -0800"), new 
Frequency("months(1)"), 29*24*60*60*1000L},
            // Months with 31 and 30 days
            {formatter.parseDateTime("02/10/2015 03:30:00 +0530"), new 
Frequency("months(2)"), (31+30)*24*60*60*1000L},
        };
    }
{code}



> Flaky test in SchedulerUtilTest
> -------------------------------
>
>                 Key: FALCON-1553
>                 URL: https://issues.apache.org/jira/browse/FALCON-1553
>             Project: Falcon
>          Issue Type: Sub-task
>            Reporter: Sowmya Ramesh
>             Fix For: trunk
>
>         Attachments: 
> org.apache.falcon.execution.SchedulerUtilTest-output.txt, 
> org.apache.falcon.execution.SchedulerUtilTest.txt
>
>
> {code}
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.385 sec <<< 
> FAILURE! - in org.apache.falcon.execution.SchedulerUtilTest
> testGetFrequencyInMillis(org.apache.falcon.execution.SchedulerUtilTest)  Time 
> elapsed: 0.004 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<5270400000> but was:<5274000000>
>       at org.testng.Assert.fail(Assert.java:89)
>       at org.testng.Assert.failNotEquals(Assert.java:489)
>       at org.testng.Assert.assertEquals(Assert.java:118)
>       at org.testng.Assert.assertEquals(Assert.java:260)
>       at org.testng.Assert.assertEquals(Assert.java:270)
>       at 
> org.apache.falcon.execution.SchedulerUtilTest.testGetFrequencyInMillis(SchedulerUtilTest.java:35)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to