wires up testfile size in download helper

This commit is contained in:
benbierens 2023-05-29 09:27:25 +02:00
parent 8c85cd22bb
commit 816cd1728b
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 3 additions and 3 deletions

View File

@ -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();