You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rafael H. Schloming (JIRA)" <qp...@incubator.apache.org> on 2008/05/13 17:52:55 UTC

[jira] Created: (QPID-1053) QpidTestCase should use something smarter than Thread.sleep(1000) to ensure that an external broker is listening on the port

QpidTestCase should use something smarter than Thread.sleep(1000) to ensure that an external broker is listening on the port
----------------------------------------------------------------------------------------------------------------------------

                 Key: QPID-1053
                 URL: https://issues.apache.org/jira/browse/QPID-1053
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: M3
            Reporter: Rafael H. Schloming
            Assignee: Rafael H. Schloming


Currently QpidTestCase does a Thread.sleep(1000) to give the externally launched broker time to bind to the port. On slower systems, or when the broker has to go through recovery, this may not be long enough. This should be replaced with a check against the broker output to guarantee that the broker is ready.

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


[jira] Resolved: (QPID-1053) QpidTestCase should use something smarter than Thread.sleep(1000) to ensure that an external broker is listening on the port

Posted by "Rafael H. Schloming (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafael H. Schloming resolved QPID-1053.
---------------------------------------

    Resolution: Fixed

> QpidTestCase should use something smarter than Thread.sleep(1000) to ensure that an external broker is listening on the port
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-1053
>                 URL: https://issues.apache.org/jira/browse/QPID-1053
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Rafael H. Schloming
>            Assignee: Rafael H. Schloming
>
> Currently QpidTestCase does a Thread.sleep(1000) to give the externally launched broker time to bind to the port. On slower systems, or when the broker has to go through recovery, this may not be long enough. This should be replaced with a check against the broker output to guarantee that the broker is ready.

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