Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-08-14 16:40:14 +0300
committerHannah von Reth <vonreth@kde.org>2020-08-18 16:32:17 +0300
commit05c72481b2b1ea008f4642982f3efc9a94dcf273 (patch)
treedad3103e76f150f9b5ec2416338955c1f8f200f1 /test
parent3cb570cb0ffd3923020751fe925934c8e63fd4c1 (diff)
Print checksum on mismatch
Diffstat (limited to 'test')
-rw-r--r--test/testchecksumvalidator.cpp4
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");