This commit is contained in:
benbierens 2023-09-22 07:43:46 +02:00
parent 192079f9c8
commit d2854bb905
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 6 additions and 11 deletions

View File

@ -14,7 +14,7 @@ namespace GethPlugin
public GethDeployment StartGeth(GethStartupConfig gethStartupConfig)
{
Log("Starting Geth bootstrap node...");
Log("Starting Geth node...");
var startupConfig = new StartupConfig();
startupConfig.Add(gethStartupConfig);

View File

@ -45,10 +45,7 @@ namespace Tests.BasicTests
}
[Test]
[Combinatorial]
public void MarketplaceExample(
[Values(true, false)] bool isValidator,
[Values(true, false)] bool simulateProofFailure)
public void MarketplaceExample()
{
var sellerInitialBalance = 234.TestTokens();
var buyerInitialBalance = 1000.TestTokens();
@ -57,12 +54,10 @@ namespace Tests.BasicTests
var geth = Ci.StartGethNode(s => s.IsMiner().WithName("disttest-geth"));
var contracts = Ci.StartCodexContracts(geth);
var seller = AddCodex(s =>
{
s.WithStorageQuota(11.GB());
s.EnableMarketplace(geth, contracts, initialEth: 10.Eth(), initialTokens: sellerInitialBalance, isValidator);
if (simulateProofFailure) s.WithSimulateProofFailures(3);
});
var seller = AddCodex(s => s
.WithStorageQuota(11.GB())
.EnableMarketplace(geth, contracts, initialEth: 10.Eth(), initialTokens: sellerInitialBalance, isValidator: true)
.WithSimulateProofFailures(failEveryNProofs: 3));
AssertBalance(geth, contracts, seller, Is.EqualTo(sellerInitialBalance));
seller.Marketplace.MakeStorageAvailable(