Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato committed Feb 8, 2023
1 parent 78082cf commit 7eb528b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/mcs/resource_manager/resource_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func (ti *testRequestInfo) WriteBytes() uint64 {
type testResponseInfo struct {
cpuMs uint64
readBytes uint64
succeed bool
}

func (tri *testResponseInfo) ReadBytes() uint64 {
Expand All @@ -243,6 +244,10 @@ func (tri *testResponseInfo) KVCPUMs() uint64 {
return tri.cpuMs
}

func (tri *testResponseInfo) Succeed() bool {
return tri.succeed
}

type tokenConsumptionPerSecond struct {
rruTokensAtATime float64
wruTokensAtATime float64
Expand Down Expand Up @@ -275,6 +280,7 @@ func (t tokenConsumptionPerSecond) makeWriteResponse() *testResponseInfo {
return &testResponseInfo{
readBytes: 0,
cpuMs: 0,
succeed: true,
}
}

Expand Down

0 comments on commit 7eb528b

Please sign in to comment.