mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
replaces node-based request check with chain-based one
This commit is contained in:
parent
2e1039a70f
commit
54ef67d375
@ -1,4 +1,5 @@
|
||||
using CodexClient;
|
||||
using CodexContractsPlugin;
|
||||
using CodexReleaseTests.Utils;
|
||||
using Nethereum.Hex.HexConvertors.Extensions;
|
||||
using NUnit.Framework;
|
||||
@ -51,12 +52,9 @@ namespace CodexReleaseTests.MarketTests
|
||||
Log("Holding initial situation to ensure contract is stable...");
|
||||
var config = GetContracts().Deployment.Config;
|
||||
WaitAndCheckNodesStaysAlive(config.PeriodDuration * 5, hosts);
|
||||
|
||||
if (contract.GetStatus() == null ||
|
||||
contract.GetStatus()!.State == StoragePurchaseState.Failed)
|
||||
{
|
||||
Assert.Fail("Contract did not survive waiting period.");
|
||||
}
|
||||
|
||||
var requestState = GetContracts().GetRequestState(contract.PurchaseId.HexToByteArray());
|
||||
Assert.That(requestState, Is.Not.EqualTo(RequestState.Failed));
|
||||
|
||||
for (var i = 0; i < numFailures; i++)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user