Skip to content

Commit

Permalink
server: try to make TidbTestSuite more stable (#30643)
Browse files Browse the repository at this point in the history
  • Loading branch information
bb7133 committed Dec 12, 2021
1 parent 8e525d8 commit 626dee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ func createTidbTestSuite(t *testing.T) (*tidbTestSuite, func()) {
ts.waitUntilServerOnline()

cleanup := func() {
if ts.store != nil {
ts.store.Close()
}
if ts.domain != nil {
ts.domain.Close()
}
if ts.server != nil {
ts.server.Close()
}
if ts.store != nil {
require.NoError(t, ts.store.Close())
}
}

return ts, cleanup
Expand Down

0 comments on commit 626dee7

Please sign in to comment.