I accidentally filled up my harddrive with random numbers last night.

This commit is contained in:
benbierens 2023-08-21 07:58:58 +02:00
parent 1682dfc08f
commit ce3850b0b0
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 40 additions and 35 deletions

View File

@ -63,8 +63,8 @@ namespace Tests.BasicTests
public void HoldMyBeerTest()
{
var blockExpirationTime = TimeSpan.FromMinutes(3);
var group = SetupCodexNodes(1, o => o
.EnableMetrics()
var group = SetupCodexNodes(3, o => o
//.EnableMetrics()
.WithBlockTTL(blockExpirationTime)
.WithBlockMaintenanceInterval(TimeSpan.FromMinutes(1))
.WithBlockMaintenanceNumber(10000)
@ -72,7 +72,7 @@ namespace Tests.BasicTests
var nodes = group.Cast<OnlineCodexNode>().ToArray();
var endTime = DateTime.UtcNow + TimeSpan.FromHours(1);
var endTime = DateTime.UtcNow + TimeSpan.FromHours(24);
var filesize = 80.MB();
double codexDefaultBlockSize = 31 * 64 * 33;
@ -89,6 +89,10 @@ namespace Tests.BasicTests
foreach (var node in nodes)
{
try
{
Thread.Sleep(TimeSpan.FromSeconds(5));
ScopedTestFiles(() =>
{
var uploadStartTime = DateTime.UtcNow;
var file = GenerateTestFile(filesize);
@ -127,6 +131,7 @@ namespace Tests.BasicTests
AssertSentLineContains(sentLine, sizeInBytes);
});
successfulDownloads++;
});
}
catch
{