Skip to content

Commit

Permalink
server: fix tests when tidb-server already listening (pingcap#26068)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo authored Jul 19, 2021
1 parent ac83504 commit 07c804b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 07c804b

Please sign in to comment.