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
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2018-10-08 13:04:54 +0300
committerckamm <mail@ckamm.de>2018-10-09 14:25:54 +0300
commit777e6ff5e015e51e102a3072639321608cc0e229 (patch)
tree08df4d03113c0f4c80cff978e720887eca54fb77 /test/syncenginetestutils.h
parentdf68d2b76f28f0fd14399d1de4b4100d25b62ec2 (diff)
PropagateUpload: Avoid crash due to cascading aborts
https://sentry.io/owncloud/desktop-win-and-mac/issues/698694072/activity/
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r--test/syncenginetestutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h
index f1790b588..a515c7e1d 100644
--- a/test/syncenginetestutils.h
+++ b/test/syncenginetestutils.h
@@ -728,7 +728,7 @@ public:
QMetaObject::invokeMethod(this, "respond", Qt::QueuedConnection);
}
- Q_INVOKABLE void respond() {
+ Q_INVOKABLE virtual void respond() {
setAttribute(QNetworkRequest::HttpStatusCodeAttribute, _httpErrorCode);
setError(InternalServerError, "Internal Server Fake Error");
emit metaDataChanged();
@@ -910,6 +910,7 @@ public:
_account->setUrl(QUrl(QStringLiteral("http://admin:admin@localhost/owncloud")));
_account->setCredentials(new FakeCredentials{_fakeQnam});
_account->setDavDisplayName("fakename");
+ _account->setServerVersion("10.0.0");
_journalDb.reset(new OCC::SyncJournalDb(localPath() + "._sync_test.db"));
_syncEngine.reset(new OCC::SyncEngine(_account, localPath(), "", _journalDb.get()));