[teiid-issues] [JBoss JIRA] (TEIID-3829) olingo module junit test failed

Steven Hawkins (JIRA) issues at jboss.org
Fri Nov 20 11:15:00 EST 2015


    [ https://issues.jboss.org/browse/TEIID-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132212#comment-13132212 ] 

Steven Hawkins commented on TEIID-3829:
---------------------------------------

It's just an issue with the locale:

{code}
public static void main(String[] args) {
    	for (String id : TimeZone.getAvailableIDs()) {
    		TimeZone.setDefault(TimeZone.getTimeZone(id));
    		try {
				new TestODataSQLBuilder().testEq();
			} catch (Throwable e) {
				System.out.println(id);
			}
    	}
}
{code}

We just need to add a setup/teardown that sets the system timezone to something that is known, such as the tests that use TimestampWithTimezone.resetCalendar.  

> olingo module junit test failed
> -------------------------------
>
>                 Key: TEIID-3829
>                 URL: https://issues.jboss.org/browse/TEIID-3829
>             Project: Teiid
>          Issue Type: Bug
>          Components: Build/Kits
>    Affects Versions: 8.13
>            Reporter: Kylin Soong
>            Assignee: Ramesh Reddy
>             Fix For: 8.13
>
>
> olingo module junit test failed:
> {code}
> Results :
> Failed tests: 
>   TestODataSQLBuilder.testEq:431->te:400->helpTest:227 expected:<...g0 WHERE g0.e1 = {t'[04]:20:02'} ORDER BY g0...> but was:<...g0 WHERE g0.e1 = {t'[16]:20:02'} ORDER BY g0...>
>   TestODataSQLBuilder.testTimeMethods:552->te:400->helpTest:227 expected:<...YEAR({ts'2008-10-13 [04]:20:02.0'}) = 2008 O...> but was:<...YEAR({ts'2008-10-13 [16]:20:02.0'}) = 2008 O...>
> Tests run: 109, Failures: 2, Errors: 0, Skipped: 0
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list