Skip to content

Commit

Permalink
store: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
c4pt0r committed Dec 1, 2015
1 parent 7fa3f25 commit ebe3ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func newStoreWithRetry(uri string, maxRetries int) (kv.Storage, error) {
break
}
sleepTime := time.Duration(uint64(retrySleepInterval) * uint64(i))
log.Errorf("Waiting store to get ready, sleep %v and try again...", sleepTime)
log.Warnf("Waiting store to get ready, sleep %v and try again...", sleepTime)
time.Sleep(sleepTime)
}
return s, errors.Trace(err)
Expand Down
2 changes: 1 addition & 1 deletion tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (s *testMainSuite) TestRetryOpenStore(c *C) {
_, err := newStoreWithRetry("dummy://dummy-store", 3)
c.Assert(err, NotNil)
elapse := time.Since(begin)
c.Assert(uint64(elapse), Greater, uint64(2*time.Second))
c.Assert(uint64(elapse), GreaterEqual, uint64(3*time.Second))
}

func sessionExec(c *C, se Session, sql string) ([]rset.Recordset, error) {
Expand Down

0 comments on commit ebe3ba9

Please sign in to comment.