Chore: Refactor short url api test (#35051)

Use a mock of the short URL service rather than real one which requires database access.

Ref #34696
This commit is contained in:
Marcus Efraimsson
2021-06-01 20:34:59 +02:00
committed by GitHub
parent 878474a808
commit d953e200f0
4 changed files with 54 additions and 12 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ type CleanUpService struct {
log log.Logger
Cfg *setting.Cfg `inject:""`
ServerLockService *serverlock.ServerLockService `inject:""`
ShortURLService *shorturls.ShortURLService `inject:""`
ShortURLService shorturls.Service `inject:""`
}
func init() {