Skip to content

Commit

Permalink
*: fix some errcheck (#25855)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuliuqii authored Jul 16, 2021
1 parent 89bb38d commit 1f6c669
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ddl/ddl_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ func (s *testDDLSuite) TestNotifyDDLJob(c *C) {
WithStore(store),
WithLease(testLease),
)
defer d.Stop()
defer func() {
err := d.Stop()
c.Assert(err, IsNil)
}()
getFirstNotificationAfterStartDDL(d)
// Ensure that the notification is not handled in workers `start` function.
d.cancel()
Expand Down Expand Up @@ -141,7 +144,10 @@ func (s *testDDLSuite) TestNotifyDDLJob(c *C) {
WithStore(store),
WithLease(testLease),
)
defer d1.Stop()
defer func() {
err := d1.Stop()
c.Assert(err, IsNil)
}()
getFirstNotificationAfterStartDDL(d1)
// Ensure that the notification is not handled by worker's "start".
d1.cancel()
Expand Down

0 comments on commit 1f6c669

Please sign in to comment.