mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
fix: fix Test_parseStructAndInject test
This commit is contained in:
parent
b1ba5386b3
commit
099d860c5a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user