2
0
mirror of synced 2025-02-21 20:48:11 +00:00
2024-10-11 10:30:07 +02:00

22 lines
566 B
C#

using NUnit.Framework;
using Utils;
namespace CodexTests.DownloadConnectivityTests
{
[TestFixture]
public class SwarmTests : AutoBootstrapDistTest
{
[Test]
[CreateTranscript("swarm_retransmit")]
public void DetectBlockRetransmits()
{
var nodes = StartCodex(10);
var file = GenerateTestFile(10.MB());
var cid = nodes[0].UploadFile(file);
var tasks = nodes.Select(n => Task.Run(() => n.DownloadContent(cid))).ToArray();
Task.WaitAll(tasks);
}
}
}