[Bug 45499] New: Unit tests fail if tcp port 4242 is already used

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 1 14:38:29 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=45499

             Bug #: 45499
           Summary: Unit tests fail if tcp port 4242 is already used
    Classification: Unclassified
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: alban.crequy at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


The twisted tests framework in Gabble listens on tcp port 4242 to simulate a
Jabber server. If an application unrelated to unit tests already listens on
that port, the tests fail.

The tests could be made more resistant by trying another port if 4242 is busy.

The attached patch on tests/twisted/gabbletest.py fixes the bug for most tests.
More work is needed for some tests such as connect/test-fail.py.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list