tst_QNetworkReply: port _WITH_TIMEOUT calls to chrono literals
Dogfooding the new 6.8 feature. Change-Id: Ic4c371896fcab0c94cef76341a6ef97763127968 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> (cherry picked from commit 34089abeeac14a6437851530aa25f8b31a22acf1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d2637d2323
commit
8bc09e9db3
@ -10340,7 +10340,7 @@ void tst_QNetworkReply::contentEncodingBigPayload()
|
||||
request.setDecompressedSafetyCheckThreshold(-1);
|
||||
QNetworkReplyPtr reply(manager.get(request));
|
||||
|
||||
QTRY_VERIFY2_WITH_TIMEOUT(reply->isFinished(), qPrintable(reply->errorString()), 15000);
|
||||
QTRY_VERIFY2_WITH_TIMEOUT(reply->isFinished(), qPrintable(reply->errorString()), 15s);
|
||||
QCOMPARE(reply->error(), QNetworkReply::NoError);
|
||||
|
||||
QFETCH(qint64, expectedSize);
|
||||
@ -10465,7 +10465,7 @@ void tst_QNetworkReply::contentEncodingError()
|
||||
QUrl(QLatin1String("http://localhost:%1").arg(QString::number(server.serverPort()))));
|
||||
QNetworkReplyPtr reply(manager.get(request));
|
||||
|
||||
QTRY_VERIFY2_WITH_TIMEOUT(reply->isFinished(), qPrintable(reply->errorString()), 15000);
|
||||
QTRY_VERIFY2_WITH_TIMEOUT(reply->isFinished(), qPrintable(reply->errorString()), 15s);
|
||||
QTEST(reply->error(), "expectedError");
|
||||
}
|
||||
|
||||
@ -10535,7 +10535,7 @@ void tst_QNetworkReply::notFoundWithCompression()
|
||||
QUrl(QLatin1String("http://localhost:%1").arg(QString::number(server.serverPort()))));
|
||||
QNetworkReplyPtr reply(manager.get(request));
|
||||
|
||||
QTRY_VERIFY2_WITH_TIMEOUT(reply->isFinished(), qPrintable(reply->errorString()), 15000);
|
||||
QTRY_VERIFY2_WITH_TIMEOUT(reply->isFinished(), qPrintable(reply->errorString()), 15s);
|
||||
QCOMPARE(reply->error(), QNetworkReply::ContentNotFoundError);
|
||||
|
||||
QFETCH(QByteArray, expected);
|
||||
|
Loading…
x
Reference in New Issue
Block a user