Skip to content

Commit

Permalink
types: migrate TestDateFSP 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 45276c4 commit c2bf3f1
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 @@ -1115,7 +1115,8 @@ func TestTimestampDiff(t *testing.T) {
}
}

func (s *testTimeSuite) TestDateFSP(c *C) {
func TestDateFSP(t *testing.T) {
t.Parallel()
tests := []struct {
date string
expect int
Expand All @@ -1127,7 +1128,7 @@ func (s *testTimeSuite) TestDateFSP(c *C) {
}

for _, test := range tests {
c.Assert(types.DateFSP(test.date), Equals, test.expect)
require.Equal(t, test.expect, types.DateFSP(test.date))
}
}

Expand Down

0 comments on commit c2bf3f1

Please sign in to comment.