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:
committed by
GitHub
parent
878474a808
commit
d953e200f0
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user