falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balu Vellanki (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FALCON-1097) UT failure for ExpressionHelperTest
Date Tue, 17 Mar 2015 01:27:38 GMT

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

Balu Vellanki edited comment on FALCON-1097 at 3/17/15 1:27 AM:
----------------------------------------------------------------

[~pallavi.rao] and [~pavan kumar] - The day of the week in reference to "2015-02-01T00:00Z"
will be off by 1 for IST and PST for 12 hours a day (11:30 AM to 11:30 PM PST). If we run
the tests during this time, the unit tests for currentWeek and lastWeek will fail. Outside
of this time, all tests pass. 

The challenge now is to make the test work for all time zones. Any ideas?




was (Author: bvellanki):
[~pallavi.rao] and [~pavan kumar] - The day of the week in reference to "2015-02-01T00:00Z"
will be off by 1 for IST and PST for 12 hours a day (11:30 AM to 11:30 PM PST). If we run
the tests during this time, this unit test will fail. Outside of this time, all tests pass.


The challenge now is to make the test work for all time zones. Any ideas?



> UT failure for ExpressionHelperTest
> -----------------------------------
>
>                 Key: FALCON-1097
>                 URL: https://issues.apache.org/jira/browse/FALCON-1097
>             Project: Falcon
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 0.6
>            Reporter: Sowmya Ramesh
>            Assignee: pavan kumar kolamuri
>
> Running org.apache.falcon.expression.ExpressionHelperTest
> Tests run: 23, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.334 sec <<<
FAILURE! - in org.apache.falcon.expression.ExpressionHelperTest
> {code}
> testStartOffset(org.apache.falcon.expression.ExpressionHelperTest)  Time elapsed: 0.009
sec  <<< FAILURE!
> java.lang.AssertionError: expected:<2015-01-29T00:00Z> but was:<2015-01-30T00:00Z>
> 	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:171)
> 	at org.testng.Assert.assertEquals(Assert.java:181)
> 	at org.apache.falcon.expression.ExpressionHelperTest.testStartOffset(ExpressionHelperTest.java:46)
> testStartOffset(org.apache.falcon.expression.ExpressionHelperTest)  Time elapsed: 0 sec
 <<< FAILURE!
> java.lang.AssertionError: expected:<2015-02-01T00:00Z> but was:<2015-01-26T00:00Z>
> 	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:171)
> 	at org.testng.Assert.assertEquals(Assert.java:181)
> 	at org.apache.falcon.expression.ExpressionHelperTest.testStartOffset(ExpressionHelperTest.java:46)
> testStartOffset(org.apache.falcon.expression.ExpressionHelperTest)  Time elapsed: 0 sec
 <<< FAILURE!
> java.lang.AssertionError: expected:<2015-01-22T00:00Z> but was:<2015-01-23T00:00Z>
> 	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:171)
> 	at org.testng.Assert.assertEquals(Assert.java:181)
> 	at org.apache.falcon.expression.ExpressionHelperTest.testStartOffset(ExpressionHelperTest.java:46)
> testStartOffset(org.apache.falcon.expression.ExpressionHelperTest)  Time elapsed: 0 sec
 <<< FAILURE!
> java.lang.AssertionError: expected:<2015-01-25T00:00Z> but was:<2015-01-19T00:00Z>
> 	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:171)
> 	at org.testng.Assert.assertEquals(Assert.java:181)
> 	at org.apache.falcon.expression.ExpressionHelperTest.testStartOffset(ExpressionHelperTest.java:46)
> {code}



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

Mime
View raw message