H-326: speed up profile handler race tests (#56)

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-19 18:05:24 +08:00
committed by GitHub
co-authored by rogee
parent aaad337ef3
commit 35360d3a92
@@ -121,6 +121,13 @@ func (s *ProfileHandlerTestSuite) SetupSuite() {
s.router = s.buildRouter()
}
func (s *ProfileHandlerTestSuite) TearDownSuite() {
if s.db != nil {
sqlDB, _ := s.db.DB()
_ = sqlDB.Close()
}
}
func (s *ProfileHandlerTestSuite) buildRouter() *gin.Engine {
r := gin.New()