From 78564e8c54896ff5e71568b8732b07ae0bd0da98 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Sat, 1 Aug 2020 16:29:26 -0700 Subject: [PATCH] fix mr test --- chain/messagepool/messagepool_test.go | 8 ++++++++ chain/types/mock/chain.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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), }