summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-12-23 13:10:27 -0200
committerThiago Macieira <thiago.macieira@intel.com>2014-12-24 14:42:27 +0100
commite38631b5e97d107dd6bd4037af6fd45e7cc4c355 (patch)
treede521cf17788e7025acd38008027bb58c2e8ab3b /tests
parent68d8d27fadafdd28e87fb8090b4770d44f888803 (diff)
Stabilize tst_QUdpSocket::broadcasting
Sending 100*8 packets of each type of message is WAY overkill. That's a stress test without limiting. My Linux system starts reporting EAGAIN on the socket, so reduce the amount of data sent. Change-Id: I153f44cf3b91d37526dac580b400114cc80b1769 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp b/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp
index c2276a2126..0a56807a7f 100644
--- a/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp
+++ b/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp
@@ -308,7 +308,7 @@ void tst_QUdpSocket::broadcasting()
#endif
broadcastSocket.bind(QHostAddress(QHostAddress::AnyIPv4), 0);
- for (int j = 0; j < 100; ++j) {
+ for (int j = 0; j < 10; ++j) {
for (int k = 0; k < 4; k++) {
broadcastSocket.writeDatagram(message[i], strlen(message[i]),
QHostAddress::Broadcast, 5000);