Add stateWaitMsg before checking last balance

This commit is contained in:
Shrenuj Bansal 2022-08-17 14:48:44 -04:00
parent cd5dd2727c
commit f5ba7b958e

View File

@ -48,9 +48,13 @@ func TestDuplicateMpoolMessages(t *testing.T) {
msg2, err := client.MpoolPushMessage(ctx, msgBal, msgSpec) msg2, err := client.MpoolPushMessage(ctx, msgBal, msgSpec)
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, msg, msg2)
_, err = client.StateWaitMsg(ctx, msg2.Cid(), 3, api.LookbackNoLimit, true)
require.NoError(t, err)
currBal, err := client.WalletBalance(ctx, client.DefaultKey.Address) currBal, err := client.WalletBalance(ctx, client.DefaultKey.Address)
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, msg, msg2)
require.Equal(t, remBal, currBal) require.Equal(t, remBal, currBal)
} }