fix: fix Test_parseStructAndInject test

This commit is contained in:
c9s 2022-03-06 18:26:36 +08:00
parent b1ba5386b3
commit 099d860c5a

View File

@ -61,7 +61,7 @@ func Test_parseStructAndInject(t *testing.T) {
type TT struct { type TT struct {
*service.TradeService *service.TradeService
} }
ss := &TT{} ss := TT{}
err := parseStructAndInject(&ss, &service.TradeService{}) err := parseStructAndInject(&ss, &service.TradeService{})
assert.NoError(t, err) assert.NoError(t, err)
assert.NotNil(t, ss.TradeService) assert.NotNil(t, ss.TradeService)