From 816cd1728bc27e63d179606705ce4bb79b39cc60 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 29 May 2023 09:27:25 +0200 Subject: [PATCH] wires up testfile size in download helper --- DistTestCore/Helpers/PeerDownloadTestHelpers.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DistTestCore/Helpers/PeerDownloadTestHelpers.cs b/DistTestCore/Helpers/PeerDownloadTestHelpers.cs index d3280e9..c52d192 100644 --- a/DistTestCore/Helpers/PeerDownloadTestHelpers.cs +++ b/DistTestCore/Helpers/PeerDownloadTestHelpers.cs @@ -24,17 +24,17 @@ test.ScopedTestFiles(() => { - PerformTest(uploader, downloaders); + PerformTest(uploader, downloaders, testFileSize); }); } test.Debug($"Success! Full download interconnectivity for nodes: {string.Join(",", nodes.Select(n => n.GetName()))}"); } - private void PerformTest(IOnlineCodexNode uploader, IOnlineCodexNode[] downloaders) + private void PerformTest(IOnlineCodexNode uploader, IOnlineCodexNode[] downloaders, ByteSize testFileSize) { // 1 test file per downloader. - var files = downloaders.Select(d => test.GenerateTestFile(1.MB())).ToArray(); + var files = downloaders.Select(d => test.GenerateTestFile(testFileSize)).ToArray(); // Upload all the test files to the uploader. var contentIds = files.Select(uploader.UploadFile).ToArray();