Skip to content

Commit

Permalink
server: tiny update
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Apr 10, 2020
1 parent 88dbc97 commit 970fcc6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions server/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,10 @@ func (ts *TidbTestSuite) TestStatusAPI(c *C) {
}

func (ts *TidbTestSuite) TestStatusPort(c *C) {
var err error
ts.store, err = mockstore.NewMockTikvStore()
session.DisableStats4Test()
c.Assert(err, IsNil)
ts.domain, err = session.BootstrapSession(ts.store)
c.Assert(err, IsNil)
ts.tidbdrv = NewTiDBDriver(ts.store)
cfg := config.NewConfig()
cfg.Port = 4008
cfg.Status.ReportStatus = true
cfg.Status.StatusPort = 10090
cfg.Performance.TCPKeepAlive = true

server, err := NewServer(cfg, ts.tidbdrv)
c.Assert(err, NotNil)
Expand Down

0 comments on commit 970fcc6

Please sign in to comment.