mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-24 08:05:02 +01:00
Add tear down test to create tests
This commit is contained in:
@@ -36,6 +36,15 @@ func (suite *CreateUserTestSuite) TearDownSuite() {
|
||||
|
||||
}
|
||||
|
||||
func (suite *CreateUserTestSuite) TearDownTest() {
|
||||
err := clearTable(suite.Service, "users")
|
||||
if err != nil {
|
||||
fmt.Printf("Tear down test error %v\n", err.Error())
|
||||
return
|
||||
}
|
||||
fmt.Println("Tear down test success")
|
||||
}
|
||||
|
||||
func (suite *CreateUserTestSuite) TestCreate() {
|
||||
e := echo.New()
|
||||
e.HTTPErrorHandler = responses.HTTPErrorHandler
|
||||
|
||||
Reference in New Issue
Block a user