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 #16036 and #16150, this patch aims to improve
appliers test coverage.

Signed-off-by: iuriatan <[email protected]>
  • Loading branch information
iuriatan committed Jul 14, 2023
1 parent 2dc7891 commit 4b5c476
Show file tree
Hide file tree
Showing 2 changed files with 403 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 4b5c476

Please sign in to comment.