mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-28 12:09:35 +00:00
adjust test parameters
This commit is contained in:
parent
104e2ec929
commit
ddc6599b6d
@ -71,7 +71,7 @@ namespace CodexReleaseTests.MarketTests
|
||||
|
||||
private TimeSpan GetContractDuration()
|
||||
{
|
||||
return Get8TimesConfiguredPeriodDuration() / 2;
|
||||
return Get8TimesConfiguredPeriodDuration();
|
||||
}
|
||||
|
||||
private TimeSpan Get8TimesConfiguredPeriodDuration()
|
||||
|
||||
@ -6,7 +6,7 @@ using Utils;
|
||||
|
||||
namespace CodexReleaseTests.MarketTests
|
||||
{
|
||||
[TestFixture(12, 48, 12)]
|
||||
[TestFixture(10, 20, 5)]
|
||||
public class SequentialContracts : MarketplaceAutoBootstrapDistTest
|
||||
{
|
||||
public SequentialContracts(int hosts, int slots, int tolerance)
|
||||
@ -19,7 +19,7 @@ namespace CodexReleaseTests.MarketTests
|
||||
private readonly PurchaseParams purchaseParams;
|
||||
|
||||
protected override int NumberOfHosts => hosts;
|
||||
protected override int NumberOfClients => 8;
|
||||
protected override int NumberOfClients => 6;
|
||||
protected override ByteSize HostAvailabilitySize => purchaseParams.SlotSize.Multiply(100.0);
|
||||
protected override TimeSpan HostAvailabilityMaxDuration => Get8TimesConfiguredPeriodDuration() * 12;
|
||||
private readonly TestToken pricePerBytePerSecond = 10.TstWei();
|
||||
@ -35,7 +35,14 @@ namespace CodexReleaseTests.MarketTests
|
||||
for (var i = 0; i < numGenerations; i++)
|
||||
{
|
||||
Log("Generation: " + i);
|
||||
Generation(clients, hosts);
|
||||
try
|
||||
{
|
||||
Generation(clients, hosts);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Assert.Fail($"Failed at generation {i} with exception {ex}");
|
||||
}
|
||||
}
|
||||
|
||||
Thread.Sleep(TimeSpan.FromSeconds(12.0));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user