Cleanup
This commit is contained in:
parent
192079f9c8
commit
d2854bb905
|
@ -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);
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue