[Pkg-owncloud-commits] [owncloud-client] 66/175: Transmission checksum: Adopt unit test to latest changes.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4d87f3043462d45bf9f754c0070eb8eec1e8ae31
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue May 19 16:57:50 2015 +0200

    Transmission checksum: Adopt unit test to latest changes.
---
 test/testtranschecksumvalidator.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/testtranschecksumvalidator.h b/test/testtranschecksumvalidator.h
index 6d3c37c..c43dd90 100644
--- a/test/testtranschecksumvalidator.h
+++ b/test/testtranschecksumvalidator.h
@@ -73,6 +73,8 @@ using namespace OCC;
     void testUploadChecksummingAdler() {
 
         TransmissionChecksumValidator *vali = new TransmissionChecksumValidator(_testfile);
+        vali->setChecksumType("Adler32");
+
         connect(vali, SIGNAL(validated()), this, SLOT(slotUpValidated()));
 
         _expected = "Adler32:"+FileSystem::calcAdler32( _testfile );
@@ -135,14 +137,14 @@ using namespace OCC;
         _loop.processEvents();
         QVERIFY(_successDown);
 
-        _expectedError = QLatin1String("The file downloaded with a broken checksum, will be redownloaded.");
+        _expectedError = QLatin1String("The downloaded file does not match the checksum, it will be resumed.");
         _errorSeen = false;
         vali->downloadValidation("Adler32:543345");
         usleep(2000);
         _loop.processEvents();
         QVERIFY(_errorSeen);
 
-        _expectedError = QLatin1String("The checksum header was malformed.");
+        _expectedError = QLatin1String("The checksum header is malformed.");
         _errorSeen = false;
         vali->downloadValidation("Klaas32:543345");
         usleep(2000);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list