parameterizes tests
This commit is contained in:
parent
c856f404e3
commit
c4c3f61a23
|
@ -73,7 +73,7 @@ namespace CodexPlugin
|
||||||
|
|
||||||
public string GetName()
|
public string GetName()
|
||||||
{
|
{
|
||||||
return CodexAccess.Container.Name;
|
return Container.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DebugInfo GetDebugInfo()
|
public DebugInfo GetDebugInfo()
|
||||||
|
|
|
@ -7,10 +7,14 @@ namespace CodexTests.ScalabilityTests
|
||||||
public class MultiPeerDownloadTests : AutoBootstrapDistTest
|
public class MultiPeerDownloadTests : AutoBootstrapDistTest
|
||||||
{
|
{
|
||||||
[Test]
|
[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 hosts = AddCodex(numberOfHosts, s => s.WithLogLevel(CodexPlugin.CodexLogLevel.Trace));
|
||||||
var file = GenerateTestFile(100.MB());
|
var file = GenerateTestFile(fileSize.MB());
|
||||||
var cid = hosts[0].UploadFile(file);
|
var cid = hosts[0].UploadFile(file);
|
||||||
|
|
||||||
var uploadLog = Ci.DownloadLog(hosts[0]);
|
var uploadLog = Ci.DownloadLog(hosts[0]);
|
||||||
|
|
Loading…
Reference in New Issue