Skip to content

Commit

Permalink
check enable failpoint result
Browse files Browse the repository at this point in the history
Signed-off-by: disksing <i@disksing.com>
  • Loading branch information
disksing committed May 15, 2019
1 parent b3f2bce commit ef6c82d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/tso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ type testTimeFallBackSuite struct {
}

func (s *testTimeFallBackSuite) SetUpSuite(c *C) {
failpoint.Enable("github.com/pingcap/pd/server/fallBackSync", `return(true)`)
failpoint.Enable("github.com/pingcap/pd/server/fallBackUpdate", `return(true)`)
c.Assert(failpoint.Enable("github.com/pingcap/pd/server/fallBackSync", `return(true)`), IsNil)
c.Assert(failpoint.Enable("github.com/pingcap/pd/server/fallBackUpdate", `return(true)`), IsNil)
s.svr, s.cleanup = mustRunTestServer(c)
s.client = s.svr.client
mustWaitLeader(c, []*Server{s.svr})
Expand Down
2 changes: 1 addition & 1 deletion tests/server/leader_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *serverTestSuite) TestWatcher(c *C) {
time.Sleep(5 * time.Second)
pd3, err := cluster.Join()
c.Assert(err, IsNil)
failpoint.Enable("github.com/pingcap/pd/server/delayWatcher", `pause`)
c.Assert(failpoint.Enable("github.com/pingcap/pd/server/delayWatcher", `pause`), IsNil)
err = pd3.Run(context.Background())
c.Assert(err, IsNil)
time.Sleep(200 * time.Millisecond)
Expand Down

0 comments on commit ef6c82d

Please sign in to comment.