tide-server: avoid panic when failed in SetupSuite.
Have taken a look at `go check` source code, `TearDownSuite` will always be called even if it failed in `SetUpSuite`.
This commit is contained in:
@ -43,7 +43,9 @@ func (ts *TidbTestSuite) SetUpSuite(c *C) {
|
||||
}
|
||||
|
||||
func (ts *TidbTestSuite) TearDownSuite(c *C) {
|
||||
ts.server.Close()
|
||||
if ts.server != nil {
|
||||
ts.server.Close()
|
||||
}
|
||||
}
|
||||
|
||||
func (ts *TidbTestSuite) TestRegression(c *C) {
|
||||
|
||||
Reference in New Issue
Block a user