summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2021-08-27 10:36:46 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2021-09-01 18:03:15 +0200
commit9258c509363bf118c67cc11e7479e08819d4f566 (patch)
treea95b3e71b9ab4111acf28bffd77634a0a4e1ea04 /tests/auto/network
parent4757b93b0ef149a3564582a45589f731755c4236 (diff)
tst_QNetworkReply: Remove and suppress one debug message
There's not much context to the URLs being printed, so remove the message. And suppress the message coming from the MiniHttpServer Change-Id: Ie2025ac717657ed0f2f0163bd0af22e12a49b30f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r--tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp
index 969202ed48..7668e293dd 100644
--- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp
+++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp
@@ -7971,7 +7971,10 @@ void tst_QNetworkReply::closeClientSideConnectionEagerlyQtbug20726()
QNetworkRequest request(url);
request.setAttribute(QNetworkRequest::ConnectionCacheExpiryTimeoutSecondsAttribute, 0);
QNetworkReplyPtr reply(manager.get(request));
- qDebug() << reply->request().url() << replyNotEager->request().url();
+ // The server just uses a normal TCP socket and prints out this error when the client disconnects:
+ QTest::ignoreMessage(QtDebugMsg,
+ "slotError QAbstractSocket::RemoteHostClosedError "
+ "\"The remote host closed the connection\"");
QCOMPARE(waitForFinish(reply), Success);
QCOMPARE(reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(), 200);
// Socket from server to QNAM still connected?