Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: disksing <i@disksing.com>
  • Loading branch information
disksing committed Jun 21, 2021
1 parent 778e441 commit 76d562c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cdc/model/changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (s *changefeedSuite) TestGetTs(c *check.C) {
CreateTime: createTime,
}
)
c.Assert(info.GetStartTs(), check.Equals, oracle.EncodeTSO(createTime.Unix()*1000))
c.Assert(info.GetStartTs(), check.Equals, oracle.GoTimeToTS(createTime))
info.StartTs = startTs
c.Assert(info.GetStartTs(), check.Equals, startTs)

Expand Down
6 changes: 3 additions & 3 deletions cdc/puller/mock_puller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *mockPullerSuite) TestTxnSort(c *check.C) {
pm.MustExec("insert into test.test(id, a) values(?, ?)", 2, 2)
pm.MustExec("insert into test.test(id, a) values(?, ?)", 3, 3)
pm.MustExec("delete from test.test")
waitForGrowingTs(&ts, oracle.EncodeTSO(time.Now().Unix()*1000))
waitForGrowingTs(&ts, oracle.GoTimeToTS(time.Now()))
}
func (s *mockPullerSuite) TestDDLPuller(c *check.C) {
Expand Down Expand Up @@ -93,7 +93,7 @@ func (s *mockPullerSuite) TestDDLPuller(c *check.C) {
pm.MustExec("insert into test.test(id, a) values(?, ?)", 2, 2)
pm.MustExec("insert into test.test(id, a) values(?, ?)", 3, 3)
pm.MustExec("delete from test.test")
waitForGrowingTs(&ts, oracle.EncodeTSO(time.Now().Unix()*1000))
waitForGrowingTs(&ts, oracle.GoTimeToTS(time.Now()))
}
func (s *mockPullerSuite) TestStartTs(c *check.C) {
Expand Down Expand Up @@ -122,7 +122,7 @@ func (s *mockPullerSuite) TestStartTs(c *check.C) {
pm.MustExec("insert into test.test(id, a) values(?, ?)", 2, 2)
pm.MustExec("insert into test.test(id, a) values(?, ?)", 3, 3)
pm.MustExec("delete from test.test")
waitForGrowingTs(&ts, oracle.EncodeTSO(time.Now().Unix()*1000))
waitForGrowingTs(&ts, oracle.GoTimeToTS(time.Now()))
cancel()
mu.Lock()
index := len(rawTxns) / 2
Expand Down

0 comments on commit 76d562c

Please sign in to comment.