diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-08-14 16:40:14 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-08-18 16:32:17 +0300 |
commit | 05c72481b2b1ea008f4642982f3efc9a94dcf273 (patch) | |
tree | dad3103e76f150f9b5ec2416338955c1f8f200f1 /test | |
parent | 3cb570cb0ffd3923020751fe925934c8e63fd4c1 (diff) |
Print checksum on mismatch
Diffstat (limited to 'test')
-rw-r--r-- | test/testchecksumvalidator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testchecksumvalidator.cpp b/test/testchecksumvalidator.cpp index 1932b6b2b..4f796c9bc 100644 --- a/test/testchecksumvalidator.cpp +++ b/test/testchecksumvalidator.cpp @@ -43,7 +43,7 @@ using namespace OCC::Utility; } void slotDownError( const QString& errMsg ) { - QVERIFY(_expectedError == errMsg ); + QCOMPARE(_expectedError, errMsg); _errorSeen = true; } @@ -196,7 +196,7 @@ using namespace OCC::Utility; QTRY_VERIFY(_successDown); - _expectedError = QLatin1String("The downloaded file does not match the checksum, it will be resumed."); + _expectedError = QStringLiteral("The downloaded file does not match the checksum, it will be resumed. '543345' != '%1'").arg(QString::fromUtf8(_expected)); _errorSeen = false; file->seek(0); vali->start(_testfile, "Adler32:543345"); |