From 4d613370e7bc0c9037eab21ce574c7d4b3dc8104 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Thu, 8 Jul 2021 11:43:47 -0600 Subject: [PATCH] server: fix tests when tidb-server already listening --- server/conn_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/conn_test.go b/server/conn_test.go index 6c259303d78a6..8451213ec2cd1 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)