parameterizes tests

This commit is contained in:
Ben 2024-04-19 11:52:39 +02:00
parent c856f404e3
commit c4c3f61a23
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
2 changed files with 8 additions and 4 deletions

View File

@ -73,7 +73,7 @@ namespace CodexPlugin
public string GetName()
{
return CodexAccess.Container.Name;
return Container.Name;
}
public DebugInfo GetDebugInfo()

View File

@ -7,10 +7,14 @@ namespace CodexTests.ScalabilityTests
public class MultiPeerDownloadTests : AutoBootstrapDistTest
{
[Test]
public void MultiPeerDownload()
[Combinatorial]
public void MultiPeerDownload(
[Values(5, 10, 20)] int numberOfHosts,
[Values(100, 1000)] int fileSize
)
{
var hosts = AddCodex(5, s => s.WithLogLevel(CodexPlugin.CodexLogLevel.Trace));
var file = GenerateTestFile(100.MB());
var hosts = AddCodex(numberOfHosts, s => s.WithLogLevel(CodexPlugin.CodexLogLevel.Trace));
var file = GenerateTestFile(fileSize.MB());
var cid = hosts[0].UploadFile(file);
var uploadLog = Ci.DownloadLog(hosts[0]);