fix test
This commit is contained in:
parent
9bf9843ff6
commit
c2b7ffbae5
@ -90,7 +90,7 @@ func TestGatewayAPIChainGetTipSetByHeight(t *testing.T) {
|
|||||||
tt := tt
|
tt := tt
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
mock := &mockGatewayDepsAPI{}
|
mock := &mockGatewayDepsAPI{}
|
||||||
a := NewNode(mock, DefaultLookbackCap, DefaultStateWaitLookbackLimit)
|
a := NewNode(mock, DefaultLookbackCap, DefaultStateWaitLookbackLimit, 0, time.Minute)
|
||||||
|
|
||||||
// Create tipsets from genesis up to tskh and return the highest
|
// Create tipsets from genesis up to tskh and return the highest
|
||||||
ts := mock.createTipSets(tt.args.tskh, tt.args.genesisTS)
|
ts := mock.createTipSets(tt.args.tskh, tt.args.genesisTS)
|
||||||
@ -246,7 +246,7 @@ func TestGatewayVersion(t *testing.T) {
|
|||||||
//stm: @GATEWAY_NODE_GET_VERSION_001
|
//stm: @GATEWAY_NODE_GET_VERSION_001
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
mock := &mockGatewayDepsAPI{}
|
mock := &mockGatewayDepsAPI{}
|
||||||
a := NewNode(mock, DefaultLookbackCap, DefaultStateWaitLookbackLimit)
|
a := NewNode(mock, DefaultLookbackCap, DefaultStateWaitLookbackLimit, 0, time.Minute)
|
||||||
|
|
||||||
v, err := a.Version(ctx)
|
v, err := a.Version(ctx)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user