Skip to content

Commit

Permalink
server: try to make 'TidbTestSuite' more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
bb7133 committed Dec 11, 2021
1 parent 8e525d8 commit c482e09
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 c482e09

Please sign in to comment.