26 lines
628 B
C#
Raw Permalink Normal View History

2025-01-16 15:13:16 +01:00
using CodexClient;
2024-11-21 14:34:13 +01:00
using CodexTests;
using CodexTests.Helpers;
2024-11-21 14:34:13 +01:00
using NUnit.Framework;
2024-11-21 10:03:09 +01:00
namespace CodexReleaseTests.NodeTests
{
2024-11-21 14:34:13 +01:00
[TestFixture]
public class PeerTableTests : AutoBootstrapDistTest
2024-11-21 10:03:09 +01:00
{
2024-11-21 14:34:13 +01:00
[Test]
public void PeerTableCompleteness()
{
var nodes = StartCodex(10);
AssertAllNodesSeeEachOther(nodes.Concat([BootstrapNode!]));
2024-11-21 14:34:13 +01:00
}
private void AssertAllNodesSeeEachOther(IEnumerable<ICodexNode> nodes)
2024-11-21 14:34:13 +01:00
{
var helper = new PeerConnectionTestHelpers(GetTestLog());
helper.AssertFullyConnected(nodes);
2024-11-21 14:34:13 +01:00
}
2024-11-21 10:03:09 +01:00
}
}