[ 
https://issues.apache.org/jira/browse/DERBY-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488712
 ] 

Andrew McIntyre commented on DERBY-2543:
----------------------------------------

This test relies on the setting of a static property, 
derby.language.maxMemoryPerTable, which explains why it would always pass when 
run alone, but fail for others when run as part of a suite. I think the 
solution is to wrap the test in a singleUseDatabaseDecorator, trying that now.

>  testVirtualMemoryHeap junit test fails with "Virtual memory heap test 
> failed! Got unexpected value. expected:<202> but was:<103>"
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2543
>                 URL: https://issues.apache.org/jira/browse/DERBY-2543
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>            Reporter: Mike Matrigali
>
> junit suite fails with the following error:
> 2) 
> testVirtualMemoryHeap(org.apache.derbyTesting.functionTests.tests.lang.UpdateCursorTest)junit.framework.AssertionFailedError:
>  Virtual memory heap test failed! Got unexpected value. expected:<202> but 
> was:<103>
>       at 
> org.apache.derbyTesting.functionTests.tests.lang.UpdateCursorTest.testVirtualMemoryHeap(UpdateCursorTest.java:178)
>       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 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.

Reply via email to