Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Nov 10, 2020
1 parent 6f141e6 commit 668a2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pdutil/pd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (s *testPDControllerSuite) TestScheduler(c *C) {
}
schedulerPauseCh := make(chan struct{})
pdController := &PdController{addrs: []string{"", ""}, schedulerPauseCh: schedulerPauseCh}
_, err := pdController.pauseSchedulersAndConfigWith(ctx, []string{scheduler}, mock)
_, err := pdController.pauseSchedulersAndConfigWith(ctx, []string{scheduler}, nil, mock)
c.Assert(err, ErrorMatches, "failed")

go func() {
Expand All @@ -53,7 +53,7 @@ func (s *testPDControllerSuite) TestScheduler(c *C) {
mock = func(context.Context, string, string, *http.Client, string, io.Reader) ([]byte, error) {
return []byte(`["` + scheduler + `"]`), nil
}
_, err = pdController.pauseSchedulersAndConfigWith(ctx, []string{scheduler}, mock)
_, err = pdController.pauseSchedulersAndConfigWith(ctx, []string{scheduler}, nil, mock)
c.Assert(err, IsNil)

go func() {
Expand Down

0 comments on commit 668a2c9

Please sign in to comment.