Skip to content

Commit

Permalink
test-1
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Jan 15, 2025
1 parent 77b7816 commit d01bde4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/server/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,12 @@ func TestRemovingProgress(t *testing.T) {
// store 2: 20/10s = 2
// average speed = (2+4)/2 = 3.0
if p.CurrentSpeed != 3.0 {
output = sendRequest(re, leader.GetAddr()+"/pd/api/v1/stores/progress?id=1", http.MethodGet, http.StatusOK)
re.NoError(json.Unmarshal(output, &p))
log.Info("store 1 progress", zap.Any("progress", p))
output = sendRequest(re, leader.GetAddr()+"/pd/api/v1/stores/progress?id=2", http.MethodGet, http.StatusOK)
re.NoError(json.Unmarshal(output, &p))
log.Info("store 2 progress", zap.Any("progress", p))
log.Info("speed not match", zap.Float64("speed", p.CurrentSpeed))
return false
}
Expand Down

0 comments on commit d01bde4

Please sign in to comment.