I accidentally filled up my harddrive with random numbers last night.
This commit is contained in:
parent
1682dfc08f
commit
ce3850b0b0
|
@ -63,8 +63,8 @@ namespace Tests.BasicTests
|
||||||
public void HoldMyBeerTest()
|
public void HoldMyBeerTest()
|
||||||
{
|
{
|
||||||
var blockExpirationTime = TimeSpan.FromMinutes(3);
|
var blockExpirationTime = TimeSpan.FromMinutes(3);
|
||||||
var group = SetupCodexNodes(1, o => o
|
var group = SetupCodexNodes(3, o => o
|
||||||
.EnableMetrics()
|
//.EnableMetrics()
|
||||||
.WithBlockTTL(blockExpirationTime)
|
.WithBlockTTL(blockExpirationTime)
|
||||||
.WithBlockMaintenanceInterval(TimeSpan.FromMinutes(1))
|
.WithBlockMaintenanceInterval(TimeSpan.FromMinutes(1))
|
||||||
.WithBlockMaintenanceNumber(10000)
|
.WithBlockMaintenanceNumber(10000)
|
||||||
|
@ -72,7 +72,7 @@ namespace Tests.BasicTests
|
||||||
|
|
||||||
var nodes = group.Cast<OnlineCodexNode>().ToArray();
|
var nodes = group.Cast<OnlineCodexNode>().ToArray();
|
||||||
|
|
||||||
var endTime = DateTime.UtcNow + TimeSpan.FromHours(1);
|
var endTime = DateTime.UtcNow + TimeSpan.FromHours(24);
|
||||||
|
|
||||||
var filesize = 80.MB();
|
var filesize = 80.MB();
|
||||||
double codexDefaultBlockSize = 31 * 64 * 33;
|
double codexDefaultBlockSize = 31 * 64 * 33;
|
||||||
|
@ -89,6 +89,10 @@ namespace Tests.BasicTests
|
||||||
foreach (var node in nodes)
|
foreach (var node in nodes)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
Thread.Sleep(TimeSpan.FromSeconds(5));
|
||||||
|
|
||||||
|
ScopedTestFiles(() =>
|
||||||
{
|
{
|
||||||
var uploadStartTime = DateTime.UtcNow;
|
var uploadStartTime = DateTime.UtcNow;
|
||||||
var file = GenerateTestFile(filesize);
|
var file = GenerateTestFile(filesize);
|
||||||
|
@ -127,6 +131,7 @@ namespace Tests.BasicTests
|
||||||
AssertSentLineContains(sentLine, sizeInBytes);
|
AssertSentLineContains(sentLine, sizeInBytes);
|
||||||
});
|
});
|
||||||
successfulDownloads++;
|
successfulDownloads++;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue