aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2015-07-27 10:19:00 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2015-07-27 10:19:00 +0200
commit7c645e1dd1b8f19fe64a78f5620449ef9f216f5c (patch)
tree51d308ea131654d61280fe73cfdd780758fba22e /tests
parent327e5060cbcb85ed26931136bb62731bb15dc5ab (diff)
downloadqxmpp-7c645e1dd1b8f19fe64a78f5620449ef9f216f5c.tar.gz
don't hardcode port 1080
Diffstat (limited to 'tests')
-rw-r--r--tests/qxmppsocks/tst_qxmppsocks.cpp3
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;