fix mr test

This commit is contained in:
whyrusleeping 2020-08-01 16:29:26 -07:00
parent 2e04dc908c
commit 78564e8c54
2 changed files with 9 additions and 1 deletions

View File

@ -14,8 +14,13 @@ import (
"github.com/filecoin-project/specs-actors/actors/crypto" "github.com/filecoin-project/specs-actors/actors/crypto"
"github.com/ipfs/go-cid" "github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore" "github.com/ipfs/go-datastore"
logging "github.com/ipfs/go-log/v2"
) )
func init() {
_ = logging.SetLogLevel("*", "INFO")
}
type testMpoolAPI struct { type testMpoolAPI struct {
cb func(rev, app []*types.TipSet) error cb func(rev, app []*types.TipSet) error
@ -275,6 +280,9 @@ func TestPruningSimple(t *testing.T) {
mp.maxTxPoolSizeHi = 40 mp.maxTxPoolSizeHi = 40
mp.maxTxPoolSizeLo = 10 mp.maxTxPoolSizeLo = 10
bmsgs, _ := mp.Pending()
fmt.Println("MESSAGES BEFORE: ", len(bmsgs))
mp.Prune() mp.Prune()
msgs, _ := mp.Pending() msgs, _ := mp.Pending()

View File

@ -27,7 +27,7 @@ func MkMessage(from, to address.Address, nonce uint64, w *wallet.Wallet) *types.
From: from, From: from,
Value: types.NewInt(1), Value: types.NewInt(1),
Nonce: nonce, Nonce: nonce,
GasLimit: 1, GasLimit: 1000000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }