mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-03 22:13:10 +00:00
Makes WaitForFailed state look for "Errored" state response
This commit is contained in:
parent
c98cf1ffc4
commit
b7781a6eae
@ -124,7 +124,7 @@ namespace CodexClient
|
||||
);
|
||||
}
|
||||
|
||||
WaitForStorageContractState(timeout, StoragePurchaseState.Failed);
|
||||
WaitForStorageContractState(timeout, StoragePurchaseState.Errored);
|
||||
}
|
||||
|
||||
private TimeSpan TimeNeededToFailEnoughProofsToFreeASlot(IMarketplaceConfigInput config)
|
||||
@ -157,7 +157,7 @@ namespace CodexClient
|
||||
hooks.OnStorageContractUpdated(purchaseStatus);
|
||||
}
|
||||
|
||||
if (lastState == StoragePurchaseState.Errored)
|
||||
if (desiredState != StoragePurchaseState.Errored && lastState == StoragePurchaseState.Errored)
|
||||
{
|
||||
FrameworkAssert.Fail("Contract errored: " + statusJson);
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ using Utils;
|
||||
namespace CodexReleaseTests.MarketTests
|
||||
{
|
||||
[TestFixture(5, 3, 1)]
|
||||
[TestFixture(10, 20, 10)]
|
||||
[TestFixture(10, 8, 4)]
|
||||
public class FinishTest : MarketplaceAutoBootstrapDistTest
|
||||
{
|
||||
public FinishTest(int hosts, int slots, int tolerance)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user