You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2008/06/26 14:45:45 UTC

[jira] Resolved: (QPID-909) DurationTestDecorator doesn't work in conjunction with the ScaledTestDecorator

     [ https://issues.apache.org/jira/browse/QPID-909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie resolved QPID-909.
---------------------------------

    Resolution: Fixed

Removed the recently added Timer task that is causing the closure of the results and so preventing the Scaled tests running.

This is not an ideal solution as this does mean that tests specified to run for longer than the specified Duration. If the test cycle 's' takes less time than Duration 'd' to run then a test cycle may start just before the duration ends. This means that the total duration will be d+<time for one test cycle>. If the time for one test cycle is greater than d the time the test will run for will be one test cycle.

> DurationTestDecorator doesn't work in conjunction with the ScaledTestDecorator
> ------------------------------------------------------------------------------
>
>                 Key: QPID-909
>                 URL: https://issues.apache.org/jira/browse/QPID-909
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: M3
>
>
> Summary:
> Changes to the DurationTestDecorator to use a timer to interupt a running test work fine when only a single test is being run. 
> When the test is wrapped with a ScaledTestDecorator then the new mechanism causes run 2-N to fail.
> This is because the new timer sets shutdown on the DurationTestDecorator and closes the testresult.
> These values are not rest on subsequent runs so the next run doesn't actually get performed due to the shutdown var being set. Also if the test were to run the testresult would interupt the run as the testresult has also been marked shutdown.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.