mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-04 06:23:09 +00:00
Ease up timeouts and resource usage in attempt to run tests in cluster.
This commit is contained in:
parent
8817ce56ae
commit
16bf9d466b
@ -60,7 +60,16 @@ namespace GethPlugin
|
||||
|
||||
private static string Retry(Func<string> fetch)
|
||||
{
|
||||
return Time.Retry(fetch, nameof(GethContainerInfoExtractor));
|
||||
// This class is the first moment where we interact with our new geth container.
|
||||
// K8s might be moving pods and/or setting up new VMs.
|
||||
// So we apply a generous retry timeout.
|
||||
var retry = new Retry(nameof(GethContainerInfoExtractor),
|
||||
maxTimeout: TimeSpan.FromMinutes(15.0),
|
||||
sleepAfterFail: TimeSpan.FromSeconds(20.0),
|
||||
onFail: f => { },
|
||||
failFast: false);
|
||||
|
||||
return retry.Run(fetch);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ namespace CodexReleaseTests.DataTests
|
||||
[Test]
|
||||
public void DeletesExpiredData()
|
||||
{
|
||||
var fileSize = 100.MB();
|
||||
var fileSize = 3.MB();
|
||||
var node = StartCodex(s => WithFastBlockExpiry(s));
|
||||
|
||||
var startSpace = node.Space();
|
||||
@ -53,7 +53,7 @@ namespace CodexReleaseTests.DataTests
|
||||
[Test]
|
||||
public void DeletesExpiredDataUsedByStorageRequests()
|
||||
{
|
||||
var fileSize = 100.MB();
|
||||
var fileSize = 3.MB();
|
||||
|
||||
var bootstrapNode = StartCodex();
|
||||
var geth = StartGethNode(s => s.IsMiner());
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using NUnit.Framework;
|
||||
|
||||
[assembly: LevelOfParallelism(3)]
|
||||
[assembly: LevelOfParallelism(2)]
|
||||
namespace CodexReleaseTests
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user