Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update a test for newer qt6
  • Loading branch information
nyalldawson committed Apr 27, 2023
1 parent 90f4862 commit 4ca6cef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgsnetworkaccessmanager.cpp
Expand Up @@ -648,7 +648,11 @@ void TestQgsNetworkAccessManager::fetchBadSsl()
gotRequestEncounteredSslError = false;
QNetworkRequest req{ u };
const QgsNetworkReplyContent rep = QgsNetworkAccessManager::blockingGet( req );
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCOMPARE( rep.errorString(), QStringLiteral( "SSL handshake failed" ) );
#else
QCOMPARE( rep.errorString(), QStringLiteral( "SSL handshake failed: The certificate has expired" ) );
#endif
while ( !loaded || !gotSslError || !gotRequestAboutToBeCreatedSignal || !gotRequestEncounteredSslError )
{
qApp->processEvents();
Expand Down

0 comments on commit 4ca6cef

Please sign in to comment.