H-326: speed up profile handler race tests (#56)
Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user