[jbossts-issues] [JBoss JIRA] Closed: (JBTM-601) LocalJunitRunner shoudl not poll server forever

Andrew Dinn (JIRA) jira-events at lists.jboss.org
Wed Aug 5 10:36:46 EDT 2009

     [ https://jira.jboss.org/jira/browse/JBTM-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Dinn closed JBTM-601.

    Resolution: Done

Modified so that the test runner gives up after 30 requests with no "finished" in the result. This means at least 300 seconds since it waits 10 seconds between requests. If we need longer for some tests then it might be better to allow an environment variable to override the count and/or the wait time.

> LocalJunitRunner shoudl not poll server forever
> -----------------------------------------------
>                 Key: JBTM-601
>                 URL: https://jira.jboss.org/jira/browse/JBTM-601
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Testing
>    Affects Versions: 4.6.0
>            Reporter: Andrew Dinn
>            Assignee: Andrew Dinn
>             Fix For: 4.6.1.CP01, 4.8.0
> The LocalJUnitRunner class is used to automate XTS unit testing. It sends a request to an HTTP servlet in a spawned AS and then polls the servlet waiting for the test results to come back. The poll loop waits for a result containing the keyword "finished". This means it will run forever if one of the unit tests hangs. The poll loop should have some way of timing out, e.g. by limiting the number of times it will loop.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossts-issues mailing list