2023-06-04 06:59:51 +00:00
|
|
|
|
using DistTestCore;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
|
|
namespace Tests.DownloadConnectivityTests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class FullyConnectedDownloadTests : AutoBootstrapDistTest
|
|
|
|
|
{
|
2023-06-06 14:10:30 +00:00
|
|
|
|
[Test]
|
|
|
|
|
[Combinatorial]
|
|
|
|
|
public void FullyConnectedDownloadTest(
|
|
|
|
|
[Values(3, 10, 20)] int numberOfNodes,
|
|
|
|
|
[Values(1, 10, 100)] int sizeMBs)
|
2023-06-04 06:59:51 +00:00
|
|
|
|
{
|
|
|
|
|
for (var i = 0; i < numberOfNodes; i++) SetupCodexNode();
|
|
|
|
|
|
2023-06-06 14:10:30 +00:00
|
|
|
|
PeerDownloadTestHelpers.AssertFullDownloadInterconnectivity(GetAllOnlineCodexNodes(), sizeMBs.MB());
|
2023-06-04 06:59:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|