Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support checking assertion of Leadership #1

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable single-node test
otoolep committed Oct 18, 2024
commit 7a8852acf25befabd22aa939839779726af98738
9 changes: 4 additions & 5 deletions raft_test.go
Original file line number Diff line number Diff line change
@@ -1971,10 +1971,9 @@ func TestRaft_VerifyLeader_PartialConnect(t *testing.T) {
}
}

func TestRaft_VerifyAssertedLeadership(t *testing.T) {
t.Skip()
func TestRaft_VerifyAssertedLeadership_Single(t *testing.T) {
// Make the cluster
c := MakeCluster(3, t, nil)
c := MakeCluster(1, t, nil)
defer c.Close()

// Get the leader
@@ -2000,10 +1999,10 @@ func TestRaft_VerifyAssertedLeadership(t *testing.T) {
}
}

func TestRaft_VerifyAssertedLeadership_Single(t *testing.T) {
func TestRaft_VerifyAssertedLeadership(t *testing.T) {
t.Skip()
// Make the cluster
c := MakeCluster(1, t, nil)
c := MakeCluster(3, t, nil)
defer c.Close()

// Get the leader