cleanup
This commit is contained in:
parent
eec70a9b8c
commit
7da90fc53b
|
@ -7,17 +7,17 @@ namespace CodexNetDeployer
|
|||
{
|
||||
public void CheckConnectivity(List<CodexNodeStartResult> startResults)
|
||||
{
|
||||
var checker = new PeerConnectionTestHelpers(new ConsoleLogger());
|
||||
|
||||
var log = new ConsoleLog();
|
||||
var checker = new PeerConnectionTestHelpers(log);
|
||||
var access = startResults.Select(r => r.Access);
|
||||
|
||||
checker.AssertFullyConnected(access);
|
||||
}
|
||||
}
|
||||
|
||||
public class ConsoleLogger : BaseLog
|
||||
public class ConsoleLog : BaseLog
|
||||
{
|
||||
public ConsoleLogger() : base(false)
|
||||
public ConsoleLog() : base(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -56,8 +56,5 @@ public class Program
|
|||
Console.WriteLine("CodexNetDeployer allows you to easily deploy multiple Codex nodes in a Kubernetes cluster. " +
|
||||
"The deployer will set up the required supporting services, deploy the Codex on-chain contracts, start and bootstrap the Codex instances. " +
|
||||
"All Kubernetes objects will be created in the namespace provided, allowing you to easily find, modify, and delete them afterwards." + nl);
|
||||
|
||||
Console.WriteLine("CodexNetDeployer assumes you are running this tool from *inside* the Kubernetes cluster you want to deploy to. " +
|
||||
"If you are not running this from a container inside the cluster, add the argument '--external'." + nl);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Tests.DownloadConnectivityTests
|
|||
[Values(1, 3, 5)] int numberOfNodes,
|
||||
[Values(1, 10)] int sizeMBs)
|
||||
{
|
||||
for (var i = 0; i < numberOfNodes; i++) SetupCodexNode();
|
||||
SetupCodexNodes(numberOfNodes);
|
||||
|
||||
CreatePeerDownloadTestHelpers().AssertFullDownloadInterconnectivity(GetAllOnlineCodexNodes(), sizeMBs.MB());
|
||||
}
|
||||
|
|
|
@ -22,10 +22,7 @@ namespace Tests.PeerDiscoveryTests
|
|||
[TestCase(20)]
|
||||
public void VariableNodesInPods(int number)
|
||||
{
|
||||
for (var i = 0; i < number; i++)
|
||||
{
|
||||
SetupCodexNode();
|
||||
}
|
||||
SetupCodexNodes(number);
|
||||
|
||||
AssertAllNodesConnected();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue