From 64033fa55145e0b894574322d1b70dc3e8ca7b96 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Mon, 23 Oct 2023 16:37:51 +0100 Subject: [PATCH] test: implement method ForgetLeader for struct nodeRecorder Signed-off-by: Benjamin Wang --- server/etcdserver/server_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/etcdserver/server_test.go b/server/etcdserver/server_test.go index 2d9b5ce4d911..7b9459429768 100644 --- a/server/etcdserver/server_test.go +++ b/server/etcdserver/server_test.go @@ -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 }