mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-03 05:53:12 +00:00
26 lines
628 B
C#
26 lines
628 B
C#
using CodexClient;
|
|
using CodexTests;
|
|
using CodexTests.Helpers;
|
|
using NUnit.Framework;
|
|
|
|
namespace CodexReleaseTests.NodeTests
|
|
{
|
|
[TestFixture]
|
|
public class PeerTableTests : AutoBootstrapDistTest
|
|
{
|
|
[Test]
|
|
public void PeerTableCompleteness()
|
|
{
|
|
var nodes = StartCodex(10);
|
|
|
|
AssertAllNodesSeeEachOther(nodes.Concat([BootstrapNode!]));
|
|
}
|
|
|
|
private void AssertAllNodesSeeEachOther(IEnumerable<ICodexNode> nodes)
|
|
{
|
|
var helper = new PeerConnectionTestHelpers(GetTestLog());
|
|
helper.AssertFullyConnected(nodes);
|
|
}
|
|
}
|
|
}
|