cs-codex-dist-tests/Tools/CodexNetDeployer/PeerConnectivityChecker.cs

35 lines
766 B
C#
Raw Normal View History

using DistTestCore.Helpers;
using Logging;
namespace CodexNetDeployer
{
public class PeerConnectivityChecker
{
public void CheckConnectivity(List<CodexNodeStartResult> startResults)
{
2023-08-24 13:32:08 +00:00
var log = new ConsoleLog();
var checker = new PeerConnectionTestHelpers(log);
var access = startResults.Select(r => r.Access);
checker.AssertFullyConnected(access);
}
}
2023-08-24 13:32:08 +00:00
public class ConsoleLog : BaseLog
{
2023-08-24 13:32:08 +00:00
public ConsoleLog() : base(false)
{
}
protected override string GetFullName()
{
return "CONSOLE";
}
public override void Log(string message)
{
Console.WriteLine(message);
}
}
}