[jira] Closed: (NANO-51) [pool2] testBlocksWhenExhausted fails

jira-yCVjj/[email protected] Tue, 16 Mar 2004 00:16:59 -0500 (EST)
Newsgroups gmane.comp.java.nanocontainer.devel
Message-ID <[email protected]>
Message:

   The following issue has been closed.

   Resolver: Joerg Schaible
       Date: Tue, 16 Mar 2004 12:15 AM

Fixed, need working global maven build to check build-system.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=NANO-51

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: NANO-51
    Summary: [pool2] testBlocksWhenExhausted fails
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: 5 minutes
 Time Spent: Unknown
  Remaining: 5 minutes

    Project: NanoContainer
 Components: 
             pool
   Fix Fors:
             1.0-beta-1
   Versions:
             1.0-beta-1

   Assignee: Joerg Schaible
   Reporter: Joerg Schaible

    Created: Mon, 9 Feb 2004 5:55 PM
    Updated: Tue, 16 Mar 2004 12:15 AM
Environment: Gentoo Linux, Blackdown JDK 1.4.1

Description:
The test fixture testBlocksWhenExhausted fails:

==== snip =====
Testsuite: org.nanocontainer.pool3.PoolingComponentAdapterTestCase
Tests run: 8, Failures: 1, Errors: 0, Time elapsed: 0,203 sec

Testcase: testNewIsInstantiatedOnEachRequest took 0,083 sec
Testcase: testInstancesCanBeRecycled took 0,001 sec
Testcase: testPoolIsFifo took 0 sec
Testcase: testBadTypeCantBeRecycled took 0,002 sec
Testcase: testUnmanagedInstanceCantBeRecycled took 0,002 sec
Testcase: testBlocksWhenExhausted took 0,014 sec
	FAILED
expected:<main returner...> but was:<returner main...>
junit.framework.ComparisonFailure: expected:<main returner...> but was:<returner main...>
	at org.nanocontainer.pool2.PoolingComponentAdapterTestCase.testBlocksWhenExhausted(PoolingComponentAdapterTestCase.java:111)
	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.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
	at com.werken.werkz.Goal.attain(Goal.java:573)
	at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:448)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
	at org.apache.maven.cli.App.doMain(App.java:543)
	at org.apache.maven.cli.App.main(App.java:1109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at com.werken.forehead.Forehead.run(Forehead.java:551)
	at com.werken.forehead.Forehead.main(Forehead.java:581)

Testcase: testBlocksWhenExhaustedTestcase: testFailsWhenExhausted took 0 sec
Testcase: testGrowsWhenExhausted took 0 sec
==== snap =====

Problem: The main thread is faster than the spawned thread and therefore the main thread is not blocked as the test assumes.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira