32 lines
757 B
C#
32 lines
757 B
C#
using CodexPlugin;
|
|
using CodexTests;
|
|
using CodexTests.Helpers;
|
|
using NUnit.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Utils;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|