From 1bd84a48923dc9e4431f12bb57b4a32156770e9c Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 11 Oct 2024 11:20:59 +0200 Subject: [PATCH] combinatorial swarm tests --- .../CodexTests/DownloadConnectivityTests/SwarmTests.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Tests/CodexTests/DownloadConnectivityTests/SwarmTests.cs b/Tests/CodexTests/DownloadConnectivityTests/SwarmTests.cs index e531d7f..ee4ad46 100644 --- a/Tests/CodexTests/DownloadConnectivityTests/SwarmTests.cs +++ b/Tests/CodexTests/DownloadConnectivityTests/SwarmTests.cs @@ -7,11 +7,15 @@ namespace CodexTests.DownloadConnectivityTests public class SwarmTests : AutoBootstrapDistTest { [Test] + [Combinatorial] [CreateTranscript("swarm_retransmit")] - public void DetectBlockRetransmits() + public void DetectBlockRetransmits( + [Values(1, 5, 10, 20)] int fileSize, + [Values(3, 5, 10, 20)] int numNodes + ) { - var nodes = StartCodex(10); - var file = GenerateTestFile(10.MB()); + var nodes = StartCodex(numNodes); + var file = GenerateTestFile(fileSize.MB()); var cid = nodes[0].UploadFile(file); var tasks = nodes.Select(n => Task.Run(() => n.DownloadContent(cid))).ToArray();