Skip to content

Commit

Permalink
types: migrate TestIsClockUnit to testify (pingcap#28010)
Browse files Browse the repository at this point in the history
Signed-off-by: Karuppiah Natarajan <karuppiah7890@users.noreply.github.com>
  • Loading branch information
karuppiah7890 committed Sep 16, 2021
1 parent 3b40c2f commit c064449
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,8 @@ func TestParseDurationValue(t *testing.T) {

}

func (s *testTimeSuite) TestIsClockUnit(c *C) {
func TestIsClockUnit(t *testing.T) {
t.Parallel()
tbl := []struct {
input string
expected bool
Expand All @@ -1718,7 +1719,7 @@ func (s *testTimeSuite) TestIsClockUnit(c *C) {
}
for _, col := range tbl {
output := types.IsClockUnit(col.input)
c.Assert(output, Equals, col.expected)
require.Equal(t, col.expected, output)
}
}

Expand Down

0 comments on commit c064449

Please sign in to comment.