diff --git a/chain/messagepool/messagepool_test.go b/chain/messagepool/messagepool_test.go index 010157066..e16c1054b 100644 --- a/chain/messagepool/messagepool_test.go +++ b/chain/messagepool/messagepool_test.go @@ -14,8 +14,13 @@ import ( "github.com/filecoin-project/specs-actors/actors/crypto" "github.com/ipfs/go-cid" "github.com/ipfs/go-datastore" + logging "github.com/ipfs/go-log/v2" ) +func init() { + _ = logging.SetLogLevel("*", "INFO") +} + type testMpoolAPI struct { cb func(rev, app []*types.TipSet) error @@ -275,6 +280,9 @@ func TestPruningSimple(t *testing.T) { mp.maxTxPoolSizeHi = 40 mp.maxTxPoolSizeLo = 10 + bmsgs, _ := mp.Pending() + fmt.Println("MESSAGES BEFORE: ", len(bmsgs)) + mp.Prune() msgs, _ := mp.Pending() diff --git a/chain/types/mock/chain.go b/chain/types/mock/chain.go index 00d0eecc9..d818cb5ac 100644 --- a/chain/types/mock/chain.go +++ b/chain/types/mock/chain.go @@ -27,7 +27,7 @@ func MkMessage(from, to address.Address, nonce uint64, w *wallet.Wallet) *types. From: from, Value: types.NewInt(1), Nonce: nonce, - GasLimit: 1, + GasLimit: 1000000, GasPrice: types.NewInt(0), }