fix: stabilize backend tests

This commit is contained in:
2026-01-08 14:07:58 +08:00
parent 7f1d2e7cb3
commit edbb62449b
18 changed files with 281 additions and 147 deletions

View File

@@ -3,6 +3,7 @@ package services
import (
"quyun/v2/providers/job"
"quyun/v2/providers/jwt"
jwt_provider "quyun/v2/providers/jwt"
"quyun/v2/providers/storage"
"go.ipao.vip/atom"
@@ -106,8 +107,12 @@ func Provide(opts ...opt.Option) error {
}, atom.GroupInitial); err != nil {
return err
}
if err := container.Container.Provide(func() (*super, error) {
obj := &super{}
if err := container.Container.Provide(func(
jwt *jwt_provider.JWT,
) (*super, error) {
obj := &super{
jwt: jwt,
}
return obj, nil
}); err != nil {