Skip to content

Commit

Permalink
Fix added test
Browse files Browse the repository at this point in the history
  • Loading branch information
peteski22 committed Nov 3, 2022
1 parent dbaeaff commit 2ff6a18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,16 +751,16 @@ func TestPruneDeadServers(t *testing.T) {
ID: "51fb4248-be6a-43e5-b47f-c089818e2012",
Address: "198.18.0.2:8300",
},
// this is going to be our failed voter
// this is going to be our failed non-voter
{
Suffrage: raft.Voter,
Suffrage: raft.Nonvoter,
ID: "a227f9a9-f55e-4321-b959-5afdcc63c6d3",
Address: "198.18.0.3:8300",
},
},
},
expectedFailed: FailedServers{
FailedVoters: []*Server{
FailedNonVoters: []*Server{
{
ID: "a227f9a9-f55e-4321-b959-5afdcc63c6d3",
Name: "node3",
Expand Down Expand Up @@ -820,7 +820,7 @@ func TestPruneDeadServers(t *testing.T) {
Address: "198.18.0.3:8300",
NodeStatus: NodeFailed,
NodeType: NodeVoter,
}, State: RaftVoter,
}, State: RaftNonVoter,
},
},
},
Expand Down

0 comments on commit 2ff6a18

Please sign in to comment.