Fixes marketplace interference check tests.

This commit is contained in:
benbierens 2023-09-28 14:00:13 +02:00
parent b0f72cf453
commit 260294fb35
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,6 @@
using NUnit.Framework; using CodexContractsPlugin;
using GethPlugin;
using NUnit.Framework;
using Utils; using Utils;
namespace Tests.DownloadConnectivityTests namespace Tests.DownloadConnectivityTests
@ -17,7 +19,9 @@ namespace Tests.DownloadConnectivityTests
[Test] [Test]
public void MarketplaceDoesNotInterfereWithPeerDownload() public void MarketplaceDoesNotInterfereWithPeerDownload()
{ {
//AddCodex(2, s => s.EnableMetrics().EnableMarketplace(1000.TestTokens())); var geth = Ci.StartGethNode(s => s.IsMiner());
var contracts = Ci.StartCodexContracts(geth);
AddCodex(2, s => s.EnableMarketplace(geth, contracts, 10.Eth(), 1000.TestTokens()));
AssertAllNodesConnected(); AssertAllNodesConnected();
} }

View File

@ -1,4 +1,6 @@
using NUnit.Framework; using CodexContractsPlugin;
using GethPlugin;
using NUnit.Framework;
namespace Tests.PeerDiscoveryTests namespace Tests.PeerDiscoveryTests
{ {
@ -26,7 +28,9 @@ namespace Tests.PeerDiscoveryTests
[Test] [Test]
public void MarketplaceDoesNotInterfereWithPeerDiscovery() public void MarketplaceDoesNotInterfereWithPeerDiscovery()
{ {
//AddCodex(2, s => s.EnableMarketplace(1000.TestTokens())); var geth = Ci.StartGethNode(s => s.IsMiner());
var contracts = Ci.StartCodexContracts(geth);
AddCodex(2, s => s.EnableMarketplace(geth, contracts, 10.Eth(), 1000.TestTokens()));
AssertAllNodesConnected(); AssertAllNodesConnected();
} }