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 nodes) { var helper = new PeerConnectionTestHelpers(GetTestLog()); helper.AssertFullyConnected(nodes); } } }