batch33 task5 port wave T1 mapped tests

This commit is contained in:
Joseph Doherty
2026-02-28 23:02:03 -05:00
parent 9ef04cc28a
commit 0bdccc839c
6 changed files with 94 additions and 0 deletions

View File

@@ -74,4 +74,15 @@ public sealed class JetStreamClusterLongTests
Directory.Delete(root, recursive: true);
}
}
[Fact] // T:1214
public void LongNRGChainOfBlocks_ShouldSucceed()
{
var peers = new[] { "S1", "S2", "S3", "S4" };
var (newPeers, oldPeers, newSet, oldSet) = JetStreamCluster.GenPeerInfo(peers, 2);
oldPeers.Length.ShouldBe(2);
newPeers.Length.ShouldBe(2);
oldSet.ContainsKey("S1").ShouldBeTrue();
newSet.ContainsKey("S4").ShouldBeTrue();
}
}