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()
|
||||
{
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue