tests: correctly reset app config in tests

This commit is contained in:
Elias Schneider
2024-10-26 00:15:31 +02:00
parent 0b0a6781ff
commit 3350398abc
7 changed files with 79 additions and 44 deletions

View File

@@ -33,5 +33,10 @@ func (tc *TestController) resetAndSeedHandler(c *gin.Context) {
return
}
if err := tc.TestService.ResetAppConfig(); err != nil {
utils.ControllerError(c, err)
return
}
c.Status(http.StatusNoContent)
}