Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoxll committed Nov 27, 2018
1 parent c46e366 commit 74ccab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddl/fail_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (s *testFailDBSuite) TestHalfwayCancelOperations(c *C) {
c.Assert(row.Len(), Equals, 1)
c.Assert(row.GetInt64(0), DeepEquals, int64(1))
c.Assert(rs[0].Close(), IsNil)
// Reload schema.
// Execute ddl statement reload schema.
_, err = s.se.Execute(context.Background(), "alter table t comment 'test1'")
c.Assert(err, IsNil)
err = s.dom.DDL().(ddl.DDLForTest).GetHook().OnChanged(nil)
Expand Down Expand Up @@ -124,7 +124,7 @@ func (s *testFailDBSuite) TestHalfwayCancelOperations(c *C) {
c.Assert(row.Len(), Equals, 1)
c.Assert(row.GetInt64(0), DeepEquals, int64(1))
c.Assert(rs[0].Close(), IsNil)
// Reload schema.
// Execute ddl statement reload schema.
_, err = s.se.Execute(context.Background(), "alter table tx comment 'tx'")
c.Assert(err, IsNil)
err = s.dom.DDL().(ddl.DDLForTest).GetHook().OnChanged(nil)
Expand Down

0 comments on commit 74ccab6

Please sign in to comment.