fix: test: Simulate call on parents's parents
This commit is contained in:
parent
4d2765e5ba
commit
8dec6a1672
1
go.sum
1
go.sum
@ -345,7 +345,6 @@ github.com/filecoin-project/go-state-types v0.0.0-20201102161440-c8033295a1fc/go
|
|||||||
github.com/filecoin-project/go-state-types v0.1.0/go.mod h1:ezYnPf0bNkTsDibL/psSz5dy4B5awOJ/E7P2Saeep8g=
|
github.com/filecoin-project/go-state-types v0.1.0/go.mod h1:ezYnPf0bNkTsDibL/psSz5dy4B5awOJ/E7P2Saeep8g=
|
||||||
github.com/filecoin-project/go-state-types v0.1.6/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q=
|
github.com/filecoin-project/go-state-types v0.1.6/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q=
|
||||||
github.com/filecoin-project/go-state-types v0.1.10/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q=
|
github.com/filecoin-project/go-state-types v0.1.10/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q=
|
||||||
github.com/filecoin-project/go-state-types v0.11.0-rc1/go.mod h1:SyNPwTsU7I22gL2r0OAPcImvLoTVfgRwdK/Y5rR1zz8=
|
|
||||||
github.com/filecoin-project/go-state-types v0.11.1 h1:GDtCN9V18bYVwXDZe+vJXc6Ck+qY9OUaQqpoVlp1FAk=
|
github.com/filecoin-project/go-state-types v0.11.1 h1:GDtCN9V18bYVwXDZe+vJXc6Ck+qY9OUaQqpoVlp1FAk=
|
||||||
github.com/filecoin-project/go-state-types v0.11.1/go.mod h1:SyNPwTsU7I22gL2r0OAPcImvLoTVfgRwdK/Y5rR1zz8=
|
github.com/filecoin-project/go-state-types v0.11.1/go.mod h1:SyNPwTsU7I22gL2r0OAPcImvLoTVfgRwdK/Y5rR1zz8=
|
||||||
github.com/filecoin-project/go-statemachine v0.0.0-20200925024713-05bd7c71fbfe/go.mod h1:FGwQgZAt2Gh5mjlwJUlVB62JeYdo+if0xWxSEfBD9ig=
|
github.com/filecoin-project/go-statemachine v0.0.0-20200925024713-05bd7c71fbfe/go.mod h1:FGwQgZAt2Gh5mjlwJUlVB62JeYdo+if0xWxSEfBD9ig=
|
||||||
|
@ -390,6 +390,9 @@ waitForProof:
|
|||||||
inclTs, err := client.ChainGetTipSet(ctx, pmr.TipSet)
|
inclTs, err := client.ChainGetTipSet(ctx, pmr.TipSet)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
inclTsParents, err := client.ChainGetTipSet(ctx, inclTs.Parents())
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
nv, err := client.StateNetworkVersion(ctx, pmr.TipSet)
|
nv, err := client.StateNetworkVersion(ctx, pmr.TipSet)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, network.Version19, nv)
|
require.Equal(t, network.Version19, nv)
|
||||||
@ -410,8 +413,8 @@ waitForProof:
|
|||||||
|
|
||||||
slmsg.Params = v1PostParams.Bytes()
|
slmsg.Params = v1PostParams.Bytes()
|
||||||
|
|
||||||
// Simulate call on inclTs's parents, so that the partition isn't already proven
|
// Simulate call on inclTsParents's parents, so that the partition isn't already proven
|
||||||
call, err := client.StateCall(ctx, slmsg, inclTs.Parents())
|
call, err := client.StateCall(ctx, slmsg, inclTsParents.Parents())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.True(t, call.MsgRct.ExitCode.IsSuccess())
|
require.True(t, call.MsgRct.ExitCode.IsSuccess())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user