Unit tests fail if tcp port 4242 is already used
Submitted by Alban Crequy
Assigned to Telepathy bugs list
Description
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.