diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-07-27 10:19:00 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-07-27 10:19:00 +0200 |
| commit | 7c645e1dd1b8f19fe64a78f5620449ef9f216f5c (patch) | |
| tree | 51d308ea131654d61280fe73cfdd780758fba22e /tests | |
| parent | 327e5060cbcb85ed26931136bb62731bb15dc5ab (diff) | |
| download | qxmpp-7c645e1dd1b8f19fe64a78f5620449ef9f216f5c.tar.gz | |
don't hardcode port 1080
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/qxmppsocks/tst_qxmppsocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/qxmppsocks/tst_qxmppsocks.cpp b/tests/qxmppsocks/tst_qxmppsocks.cpp index 2a24c524..5958f0be 100644 --- a/tests/qxmppsocks/tst_qxmppsocks.cpp +++ b/tests/qxmppsocks/tst_qxmppsocks.cpp @@ -59,7 +59,7 @@ void tst_QXmppSocks::newConnectionSlot(QTcpSocket *socket, QString hostName, qui void tst_QXmppSocks::testClientAndServer() { QXmppSocksServer server; - QVERIFY(server.listen(1080)); + QVERIFY(server.listen()); QVERIFY(server.serverPort() != 0); connect(&server, SIGNAL(newConnection(QTcpSocket*,QString,quint16)), this, SLOT(newConnectionSlot(QTcpSocket*,QString,quint16))); @@ -82,7 +82,6 @@ void tst_QXmppSocks::testClientAndServer() client.disconnectFromHost(); } - void tst_QXmppSocks::testServer() { QXmppSocksServer server; |
