2
0
mirror of synced 2025-01-11 09:06:56 +00:00

I think I may be on to something

This commit is contained in:
benbierens 2024-06-07 18:16:19 +02:00
parent 52ae671234
commit 16bf5ce5ab
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A

View File

@ -9,6 +9,12 @@ namespace CodexTests.ScalabilityTests;
[TestFixture]
public class ScalabilityTests : CodexDistTest
{
private const int Below2 = (Int32.MaxValue / (1024 * 1024)) - 20;
private const int Below1 = (Int32.MaxValue / (1024 * 1024)) - 10;
private const int Exact = (Int32.MaxValue / (1024 * 1024)) + 0;
private const int Above1 = (Int32.MaxValue / (1024 * 1024)) + 10;
private const int Above2 = (Int32.MaxValue / (1024 * 1024)) + 20;
/// <summary>
/// We upload a file to node A, then download it with B.
/// Then we stop node A, and download again with node C.
@ -19,8 +25,8 @@ public class ScalabilityTests : CodexDistTest
[DontDownloadLogs]
[WaitForCleanup]
public void ShouldMaintainFileInNetwork(
[Values(10)] int numberOfNodes, // TODO: include 40, 80 and 100
[Values(5000, 10000)] int fileSizeInMb // TODO: include 100, 1000
[Values(5)] int numberOfNodes, // TODO: include 10, 40, 80 and 100, not 5
[Values(Below2, Below1, Exact, Above1, Above2)] int fileSizeInMb // TODO: include 100, 1000, 5000, 10000
)
{
var logLevel = CodexLogLevel.Info;