Skip to content

Commit

Permalink
fxi rpctest
Browse files Browse the repository at this point in the history
  • Loading branch information
libangzhu authored and 33cn committed Jan 17, 2024
1 parent 176df2a commit 5de6bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/jrpchandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1862,9 +1862,11 @@ func TestChain33_GetChainConfig(t *testing.T) {
cfg := types.NewChain33Config(types.GetDefaultCfgstring())
api := new(mocks.QueueProtocolAPI)
api.On("GetConfig", mock.Anything).Return(cfg)
api.On("GetLastHeader", mock.Anything).Return(&types.Header{Height: 0}, nil)
client := newTestChain33(api)
var result interface{}
api.On("GetChainConfig").Return(nil)

err := client.GetChainConfig(&types.ReqNil{}, &result)
assert.Nil(t, err)
}
Expand Down

0 comments on commit 5de6bc4

Please sign in to comment.