Skip to content

Commit

Permalink
store/tikv: increase epsilon for oracle test. (pingcap#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored Dec 7, 2016
1 parent 8d42cc0 commit 4f742c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/tikv/gc_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ func (s *testGCWorkerSuite) timeEqual(c *C, t1, t2 time.Time, epsilon time.Durat
func (s *testGCWorkerSuite) TestGetOracleTime(c *C) {
t1, err := s.gcWorker.getOracleTime()
c.Assert(err, IsNil)
s.timeEqual(c, time.Now(), t1, time.Millisecond*2)
s.timeEqual(c, time.Now(), t1, time.Millisecond*10)

s.oracle.addOffset(time.Second * 10)
t2, err := s.gcWorker.getOracleTime()
c.Assert(err, IsNil)
s.timeEqual(c, t2, t1.Add(time.Second*10), time.Millisecond*2)
s.timeEqual(c, t2, t1.Add(time.Second*10), time.Millisecond*10)
}

func (s *testGCWorkerSuite) TestPrepareGC(c *C) {
Expand Down

0 comments on commit 4f742c2

Please sign in to comment.