Commit ee966a84 authored by mdj33's avatar mdj33 Committed by 33cn

add ut

parent 2ba66c02
......@@ -249,7 +249,6 @@ func TestCalcCommitMsgTxs(t *testing.T) {
func TestGetConsensusStatus(t *testing.T) {
para := new(client)
para.GetAPI()
grpcClient := &typesmocks.Chain33Client{}
//grpcClient.On("GetFork", mock.Anything, &types.ReqKey{Key: []byte("ForkBlockHash")}).Return(&types.Int64{Data: 1}, errors.New("err")).Once()
para.grpcClient = grpcClient
......
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