Skip to content

Commit

Permalink
etcdserver: add kv tests to backend applier
Browse files Browse the repository at this point in the history
* add `put` tests on quota applier

Following discussions on etcd-io#16036 and etcd-io#16150, this patch improves appliers
test coverage.

Signed-off-by: iuriatan <iuriatan@gmail.com>
  • Loading branch information
iuriatan committed Jul 15, 2023
1 parent 2dc7891 commit 4bdc7e9
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/etcdserver/apply/apply_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ func dummyIndexWaiter(_ uint64) <-chan struct{} {
return ch
}

var emptyResult = Result{}

func dummyApplyFunc(_ context.Context, _ *pb.InternalRaftRequest, _ membership.ShouldApplyV3) *Result {
return &Result{}
return &emptyResult
}

type fakeRaftStatusGetter struct{}
Expand Down
Loading

0 comments on commit 4bdc7e9

Please sign in to comment.