From d2854bb90583a633ac9d854a96e0f353af926ea3 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 22 Sep 2023 07:43:46 +0200 Subject: [PATCH] Cleanup --- ProjectPlugins/GethPlugin/GethStarter.cs | 2 +- Tests/CodexTests/BasicTests/ExampleTests.cs | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ProjectPlugins/GethPlugin/GethStarter.cs b/ProjectPlugins/GethPlugin/GethStarter.cs index 2cc9ef7..f358b72 100644 --- a/ProjectPlugins/GethPlugin/GethStarter.cs +++ b/ProjectPlugins/GethPlugin/GethStarter.cs @@ -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); diff --git a/Tests/CodexTests/BasicTests/ExampleTests.cs b/Tests/CodexTests/BasicTests/ExampleTests.cs index f35be56..4049b9a 100644 --- a/Tests/CodexTests/BasicTests/ExampleTests.cs +++ b/Tests/CodexTests/BasicTests/ExampleTests.cs @@ -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(