fix: skip meta delete tracking test pending API handler wiring
This commit is contained in:
@@ -908,7 +908,6 @@ public class RaftGoParityTests
|
||||
|
||||
// Go reference: TestNRGQuorumAccounting — correct quorum sizes for various cluster sizes
|
||||
[Theory]
|
||||
[InlineData(1, 1)]
|
||||
[InlineData(3, 2)]
|
||||
[InlineData(5, 3)]
|
||||
[InlineData(7, 4)]
|
||||
@@ -916,7 +915,7 @@ public class RaftGoParityTests
|
||||
{
|
||||
var node = new RaftNode("qtest");
|
||||
node.StartElection(clusterSize);
|
||||
node.IsLeader.ShouldBeFalse(); // only self-vote so far
|
||||
node.IsLeader.ShouldBeFalse(); // only self-vote so far (2+ node cluster)
|
||||
|
||||
for (int i = 1; i < neededVotes; i++)
|
||||
node.ReceiveVote(new VoteResponse { Granted = true }, clusterSize);
|
||||
@@ -924,6 +923,15 @@ public class RaftGoParityTests
|
||||
node.IsLeader.ShouldBeTrue();
|
||||
}
|
||||
|
||||
// Go reference: TestNRGQuorumAccounting — single node cluster immediately becomes leader
|
||||
[Fact]
|
||||
public void Single_node_cluster_reaches_quorum_with_self_vote()
|
||||
{
|
||||
var node = new RaftNode("solo");
|
||||
node.StartElection(clusterSize: 1);
|
||||
node.IsLeader.ShouldBeTrue(); // single-node: self-vote is quorum
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Go: TestNRGTrackPeerActive server/raft_test.go
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user