From 0443a51228e87499470536d570284a4bbab85d0f Mon Sep 17 00:00:00 2001 From: Shane Kearns Date: Mon, 19 Dec 2011 16:52:59 +0000 Subject: Fix QNetworkReply test cases that use the MiniHttpServer on windows The "happy eyeballs" connection code means that IPv4 and IPv6 connections are both attempted for a http request. For a normal http server, this is no problem, but the MiniHttpServer in the test code is very simplistic and cannot cope with more than one client connected at the same time. On windows this causes all these tests to fail with timeouts. Changed the MiniHttpServer to listen on IPv4 only instead of Any address. Change-Id: I81e249997d894d266001da474a351b1f5642599e Reviewed-by: Thiago Macieira --- tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto') diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp index d3b92ea9b1..e900a25264 100644 --- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp @@ -463,7 +463,7 @@ public: if (useipv6) { listen(QHostAddress::AnyIPv6); } else { - listen(); + listen(QHostAddress::AnyIPv4); } if (thread) { connect(thread, SIGNAL(started()), this, SLOT(threadStartedSlot())); -- cgit v1.2.3