test(log): expand handler, config, and metrics coverage

This commit is contained in:
zenfun
2025-12-21 16:18:38 +08:00
parent c2c65e774b
commit 6e6c669ea0
9 changed files with 112 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ func TestMaster_ListTokens_AndUpdateToken(t *testing.T) {
rdb := redis.NewClient(&redis.Options{Addr: mr.Addr()})
syncSvc := service.NewSyncService(rdb)
masterSvc := service.NewMasterService(db)
h := NewMasterHandler(db, masterSvc, syncSvc)
h := NewMasterHandler(db, db, masterSvc, syncSvc)
withMaster := func(next gin.HandlerFunc) gin.HandlerFunc {
return func(c *gin.Context) {