Skip to content

Commit

Permalink
types: make golangci-lint happy
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox committed Apr 15, 2021
1 parent 7e48437 commit 2845dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ func (s *testTimeSuite) TestCodec(c *C) {
sc := &stmtctx.StatementContext{TimeZone: time.UTC}

// MySQL timestamp value doesn't allow month=0 or day=0.
t, err := types.ParseTimestamp(sc, "2016-12-00 00:00:00")
_, err := types.ParseTimestamp(sc, "2016-12-00 00:00:00")
c.Assert(err, NotNil)

t, err = types.ParseTimestamp(sc, "2010-10-10 10:11:11")
t, err := types.ParseTimestamp(sc, "2010-10-10 10:11:11")
c.Assert(err, IsNil)
_, err = t.ToPackedUint()
c.Assert(err, IsNil)
Expand Down

0 comments on commit 2845dda

Please sign in to comment.