35 lines
767 B
C#
35 lines
767 B
C#
using DistTestCore.Helpers;
|
|
using Logging;
|
|
|
|
namespace CodexNetDeployer
|
|
{
|
|
public class PeerConnectivityChecker
|
|
{
|
|
public void CheckConnectivity(List<CodexNodeStartResult> startResults)
|
|
{
|
|
var log = new ConsoleLog();
|
|
var checker = new PeerConnectionTestHelpers(log);
|
|
var nodes = startResults.Select(r => r.CodexNode);
|
|
|
|
checker.AssertFullyConnected(nodes);
|
|
}
|
|
}
|
|
|
|
public class ConsoleLog : BaseLog
|
|
{
|
|
public ConsoleLog() : base(false)
|
|
{
|
|
}
|
|
|
|
protected override string GetFullName()
|
|
{
|
|
return "CONSOLE";
|
|
}
|
|
|
|
public override void Log(string message)
|
|
{
|
|
Console.WriteLine(message);
|
|
}
|
|
}
|
|
}
|