Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Jun 13, 2022
1 parent b8900a0 commit 1eadb2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/statistics/kind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ func TestGetLoads(t *testing.T) {

loads = regionA.GetWriteLoads()
re.Len(loads, int(RegionStatCount))
re.Equal(loads[RegionReadBytes], 0.0)
re.Equal(loads[RegionReadKeys], 0.0)
re.Equal(loads[RegionReadQuery], 0.0)
re.Equal(loads[RegionWriteBytes], float64(regionA.GetBytesWritten()))
re.Equal(loads[RegionWriteKeys], float64(regionA.GetKeysWritten()))
re.Equal(loads[RegionWriteQuery], float64(regionA.GetWriteQueryNum()))
re.Equal(0.0, loads[RegionReadBytes])
re.Equal(0.0, loads[RegionReadKeys])
re.Equal(0.0, loads[RegionReadQuery])
re.Equal(float64(regionA.GetBytesWritten()), loads[RegionWriteBytes])
re.Equal(float64(regionA.GetKeysWritten()), loads[RegionWriteKeys])
re.Equal(float64(regionA.GetWriteQueryNum()), loads[RegionWriteQuery])
}

0 comments on commit 1eadb2c

Please sign in to comment.