[
https://issues.apache.org/jira/browse/DERBY-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547301
]
Mamta A. Satoor commented on DERBY-3222:
----------------------------------------
The commit comments were as follows
DERBY-3222 The test will fail depending on the timing. It inserts CURRENT_DATE
into a column and then compares that
column with whatever the CURRENT_DATE might be during the run of compare sql.
If the insert happened right before
midnight and comparison happens right after midnight, the comparison of the
dates will return FALSE. Since the main
purpose of the test is to make sure that Derby derives correct collation type
for CURRENT_DATE and
UPPER(CURRENT_DATE), it really does not matter if the 2 current dates actually
match or not. Because of this, I
have changed the test to look for <= while doing date comparison rather than =.
This should resolve the timing
related fact of the test.
> 'CollationTest' fails with ' expected:<1> but was:<0>' in
> testPolishCollation(CollationTest.java:402)
> -----------------------------------------------------------------------------------------------------
>
> Key: DERBY-3222
> URL: https://issues.apache.org/jira/browse/DERBY-3222
> Project: Derby
> Issue Type: Bug
> Components: Regression Test Failure
> Affects Versions: 10.3.1.5
> Environment: OS: Solaris 10 8/07 s10x_u4wos_12b X86 64bits - SunOS
> 5.10 Generic_120012-14
> JVM: Sun Microsystems Inc. 1.6.0_01-b06
> Reporter: Ole Solberg
> Assignee: Mamta A. Satoor
> Fix For: 10.3.1.5, 10.4.0.0
>
>
> See
> http://dbtg.thresher.com/derby/test/10.3Branch/jvm1.6/testing/Limited/testSummary-597152.html
> : sol.
> There was 1 failure:
> 1)
> testPolishCollation(org.apache.derbyTesting.functionTests.tests.lang.CollationTest)junit.framework.AssertionFailedError:
> expected:<1> but was:<0>
> at
> org.apache.derbyTesting.functionTests.tests.lang.CollationTest.commonTestingForTerritoryBasedDB(CollationTest.java:1141)
> at
> org.apache.derbyTesting.functionTests.tests.lang.CollationTest.testPolishCollation(CollationTest.java:402)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.