Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: kennytm <kennytm@gmail.com>
  • Loading branch information
tisonkun and kennytm authored Sep 25, 2021
1 parent 81a62ea commit 297058e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion br/pkg/pdutil/pd_serial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func TestScheduler(t *testing.T) {
"max-pending-peer-count": uint64(16),
}
_, err = pdController.pauseSchedulersAndConfigWith(ctx, []string{}, cfg, mock)
require.Error(t, err)
require.Regexp(t, "^failed to update PD.*", err.Error())
go func() {
<-schedulerPauseCh
Expand Down Expand Up @@ -131,7 +132,7 @@ func TestRegionCount(t *testing.T) {
) ([]byte, error) {
query := fmt.Sprintf("%s/%s", addr, prefix)
u, e := url.Parse(query)
require.NoError(t, e)
require.NoError(t, e, query)
start := u.Query().Get("start_key")
end := u.Query().Get("end_key")
t.Log(hex.EncodeToString([]byte(start)))
Expand Down

0 comments on commit 297058e

Please sign in to comment.