fix: stabilize backend tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user