Add stateWaitMsg before checking last balance
This commit is contained in:
parent
cd5dd2727c
commit
f5ba7b958e
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user