Fix mpool test

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-08-06 23:14:09 +02:00
parent ab08858b45
commit 94a38cd97d
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -26,7 +26,7 @@ func makeTestMessage(w *wallet.Wallet, from, to address.Address, nonce uint64, g
Value: types.FromFil(0),
Nonce: nonce,
GasLimit: gasLimit,
GasFeeCap: types.NewInt(gasPrice + 100),
GasFeeCap: types.NewInt(gasPrice),
GasPremium: types.NewInt(gasPrice),
}
sig, err := w.Sign(context.TODO(), from, msg.Cid().Bytes())
@ -272,7 +272,7 @@ func TestMessageChains(t *testing.T) {
chains = mp.createMessageChains(a1, mset, ts)
if len(chains) != 1 {
t.Fatal("expected a single chain")
t.Fatalf("expected a single chain: got %d", len(chains))
}
if len(chains[0].msgs) != 2 {
t.Fatalf("expected %d message in the chain but got %d", 2, len(chains[0].msgs))