Commit a73e3221 authored by linj's avatar linj Committed by vipwzw

fix test

parent d9c9b3b2
...@@ -251,7 +251,7 @@ func TestGetLastBlockInfo(t *testing.T) { ...@@ -251,7 +251,7 @@ func TestGetLastBlockInfo(t *testing.T) {
qClient.On("Wait", mock.Anything).Return(msg, nil) qClient.On("Wait", mock.Anything).Return(msg, nil)
api.On("GetSequenceByHash", mock.Anything).Return(&types.Int64{Data: int64(1)}, nil) api.On("GetMainSequenceByHash", mock.Anything).Return(&types.Int64{Data: int64(1)}, nil)
mainBlock := &types.Block{ParentHash: []byte("phash")} mainBlock := &types.Block{ParentHash: []byte("phash")}
mainDetail := &types.BlockDetail{Block: mainBlock} mainDetail := &types.BlockDetail{Block: mainBlock}
blocks := &types.BlockDetails{} blocks := &types.BlockDetails{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment