Commit 59703110 authored by vipwzw's avatar vipwzw

auto ci

parent 740e8c24
...@@ -11,12 +11,13 @@ import ( ...@@ -11,12 +11,13 @@ import (
"testing" "testing"
"time" "time"
"errors"
"github.com/33cn/chain33/common/address" "github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
pt "github.com/33cn/plugin/plugin/dapp/paracross/types"
typesmocks "github.com/33cn/chain33/types/mocks" typesmocks "github.com/33cn/chain33/types/mocks"
pt "github.com/33cn/plugin/plugin/dapp/paracross/types"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"errors"
) )
var ( var (
...@@ -236,6 +237,6 @@ func TestGetBlockHashForkHeightOnMainChain(t *testing.T) { ...@@ -236,6 +237,6 @@ func TestGetBlockHashForkHeightOnMainChain(t *testing.T) {
grpcClient.On("GetFork", mock.Anything, &types.ReqKey{Key: []byte("ForkBlockHash")}).Return(&types.Int64{Data: 1}, nil).Once() grpcClient.On("GetFork", mock.Anything, &types.ReqKey{Key: []byte("ForkBlockHash")}).Return(&types.Int64{Data: 1}, nil).Once()
ret, err := para.GetBlockHashForkHeightOnMainChain() ret, err := para.GetBlockHashForkHeightOnMainChain()
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, int64(1),ret) assert.Equal(t, int64(1), ret)
} }
\ No newline at end of file
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