From ef6d2600ca5682447314ec0db3e95fc8fa68c604 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 12 Aug 2020 18:38:57 +0200 Subject: [PATCH] Size cleanups in TestChunkingNG Some of the comments didn't match the size or were missing. This also means reducing one of the 150 MB payloads left behind reducing the execution time by a few more seconds. This is now around 30s execution time which is more acceptable. Signed-off-by: Kevin Ottens --- test/testchunkingng.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testchunkingng.cpp b/test/testchunkingng.cpp index 3439f7cfc..8efd39b39 100644 --- a/test/testchunkingng.cpp +++ b/test/testchunkingng.cpp @@ -116,7 +116,7 @@ private slots: FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()}; fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"chunking", "1.0"} } } }); setChunkSize(fakeFolder.syncEngine(), 1 * 1000 * 1000); - const int size = 150 * 1000 * 1000; // 30 MB + const int size = 30 * 1000 * 1000; // 30 MB partialUpload(fakeFolder, "A/a0", size); QCOMPARE(fakeFolder.uploadState().children.count(), 1); auto chunkingId = fakeFolder.uploadState().children.first().name; @@ -215,7 +215,7 @@ private slots: void testResume4() { FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()}; fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"chunking", "1.0"} } } }); - const int size = 30 * 1000 * 1000; // 300 MB + const int size = 30 * 1000 * 1000; // 30 MB setChunkSize(fakeFolder.syncEngine(), 1 * 1000 * 1000); partialUpload(fakeFolder, "A/a0", size); @@ -244,7 +244,7 @@ private slots: { FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() }; fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ { "chunking", "1.0" } } }, { "checksums", QVariantMap{ { "supportedTypes", QStringList() << "SHA1" } } } }); - const int size = 15 * 1000 * 1000; + const int size = 15 * 1000 * 1000; // 15 MB setChunkSize(fakeFolder.syncEngine(), 1 * 1000 * 1000); // Make the MOVE never reply, but trigger a client-abort and apply the change remotely @@ -328,7 +328,7 @@ private slots: { FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() }; fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ { "chunking", "1.0" } } }, { "checksums", QVariantMap{ { "supportedTypes", QStringList() << "SHA1" } } } }); - const int size = 15 * 1000 * 1000; + const int size = 15 * 1000 * 1000; // 15 MB setChunkSize(fakeFolder.syncEngine(), 1 * 1000 * 1000); // Make the MOVE never reply, but trigger a client-abort and apply the change remotely @@ -455,7 +455,7 @@ private slots: FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()}; fakeFolder.syncEngine().account()->setCapabilities({ { "dav", QVariantMap{ {"chunking", "1.0"} } } }); - const int size = 10 * 1000 * 1000; // 100 MB + const int size = 10 * 1000 * 1000; // 10 MB setChunkSize(fakeFolder.syncEngine(), 1 * 1000 * 1000); fakeFolder.localModifier().insert("A/a0", size); -- 2.30.2