fixes marketplace test

This commit is contained in:
Ben 2024-03-20 11:32:16 +01:00
parent ef53fe02a3
commit 2a5b3e0eec
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
3 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,4 @@
using CodexContractsPlugin;
using Logging;
using Logging;
using Newtonsoft.Json;
using Utils;

View File

@ -78,9 +78,9 @@ namespace CodexPlugin
{
log.Log($"Making storage available... (" +
$"size: {TotalSpace}, " +
$"maxDuration: {Time.FormatDuration(MaxDuration)})" +
$"maxDuration: {Time.FormatDuration(MaxDuration)}, " +
$"minPriceForTotalSpace: {MinPriceForTotalSpace}, " +
$"maxCollateral: {MaxCollateral}, ");
$"maxCollateral: {MaxCollateral})");
}
}

View File

@ -149,8 +149,7 @@ namespace CodexTests.BasicTests
Assert.That(filledSlotEvents.Length, Is.EqualTo(purchase.MinRequiredNumberOfNodes));
for (var i = 0; i < purchase.MinRequiredNumberOfNodes; i++)
{
var filledSlotEvent = filledSlotEvents[i];
Assert.That(filledSlotEvent.SlotIndex, Is.EqualTo(i));
var filledSlotEvent = filledSlotEvents.Single(e => e.SlotIndex == i);
Assert.That(filledSlotEvent.RequestId.ToHex(), Is.EqualTo(request.RequestId.ToHex()));
Assert.That(filledSlotEvent.Host, Is.EqualTo(seller.EthAddress));
}