Skip to content

Commit

Permalink
Get rid of some flakes, add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Dec 15, 2022
1 parent bc22bb1 commit b3ba605
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion itests/multisig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/filecoin-project/go-state-types/exitcode"

"github.com/filecoin-project/lotus/blockstore"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/actors/adt"
lmultisig "github.com/filecoin-project/lotus/chain/actors/builtin/multisig"
Expand Down Expand Up @@ -118,6 +119,8 @@ func TestMultisigReentrant(t *testing.T) {
pp, err := client.MsigPropose(ctx, multisigAddress, multisigAddress, big.Zero(), signer, uint64(builtin.MethodsMultisig.Approve), approveParams)
require.NoError(t, err)

pp.Message.GasLimit = build.BlockGasLimit

pm, err := client.MpoolPushMessage(ctx, &pp.Message, nil)
require.NoError(t, err, "failed to send reentrant propose message (MpooPushMessage)")

Expand All @@ -133,7 +136,7 @@ func TestMultisigReentrant(t *testing.T) {
sl, err := client.StateReplay(ctx, types.EmptyTSK, pm.Cid())
require.NoError(t, err, "failed to replay reentrant propose message (StateWaitMsg)")

require.Equal(t, 1025, countDepth(sl.ExecutionTrace))
require.Equal(t, 1025, countDepth(sl.ExecutionTrace), "Failed. Error message was: %s", sl.Error)
}

func countDepth(trace types.ExecutionTrace) int {
Expand Down

0 comments on commit b3ba605

Please sign in to comment.