Skip to content

Commit

Permalink
test: implement method ForgetLeader for struct nodeRecorder
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <[email protected]>
  • Loading branch information
ahrtr committed Oct 23, 2023
1 parent a8993b9 commit 64033fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/etcdserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1832,6 +1832,10 @@ func (n *nodeRecorder) Compact(index uint64, nodes []uint64, d []byte) {
n.Record(testutil.Action{Name: "Compact"})
}

func (n *nodeRecorder) ForgetLeader(ctx context.Context) error {
return nil
}

type nodeProposalBlockerRecorder struct {
nodeRecorder
}
Expand Down

0 comments on commit 64033fa

Please sign in to comment.