diff --git a/tidb.go b/tidb.go index 4e5bcb50925f7..82881e4ddcc6c 100644 --- a/tidb.go +++ b/tidb.go @@ -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) diff --git a/tidb_test.go b/tidb_test.go index 96fac14c25200..928d834a24baf 100644 --- a/tidb_test.go +++ b/tidb_test.go @@ -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) {