diff --git a/server/conn_test.go b/server/conn_test.go index dfdc52ff234dc..b5c11bef4a5e8 100644 --- a/server/conn_test.go +++ b/server/conn_test.go @@ -206,6 +206,8 @@ func (ts *ConnTestSuite) TestInitialHandshake(c *C) { c.Parallel() var outBuffer bytes.Buffer cfg := newTestConfig() + cfg.Port = 0 + cfg.Status.StatusPort = 0 drv := NewTiDBDriver(ts.store) srv, err := NewServer(cfg, drv) c.Assert(err, IsNil)