2019-11-12 19:23:59 +00:00
|
|
|
package vm_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/chain-validation/pkg/suites"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/lotus/chain/validation"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestStorageMinerValidation(t *testing.T) {
|
2019-11-26 21:58:43 +00:00
|
|
|
t.SkipNow()
|
2019-11-12 19:23:59 +00:00
|
|
|
factory := validation.NewFactories()
|
2019-11-26 21:58:43 +00:00
|
|
|
suites.CreateStorageMinerAndUpdatePeerID(t, factory)
|
2019-11-12 19:23:59 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestValueTransfer(t *testing.T) {
|
|
|
|
factory := validation.NewFactories()
|
|
|
|
suites.AccountValueTransferSuccess(t, factory, 126)
|
|
|
|
suites.AccountValueTransferZeroFunds(t, factory, 112)
|
|
|
|
suites.AccountValueTransferOverBalanceNonZero(t, factory, 0)
|
|
|
|
suites.AccountValueTransferOverBalanceZero(t, factory, 0)
|
|
|
|
suites.AccountValueTransferToSelf(t, factory, 0)
|
|
|
|
suites.AccountValueTransferFromKnownToUnknownAccount(t, factory, 0)
|
|
|
|
suites.AccountValueTransferFromUnknownToKnownAccount(t, factory, 0)
|
|
|
|
suites.AccountValueTransferFromUnknownToUnknownAccount(t, factory, 0)
|
|
|
|
}
|
2019-12-09 17:55:24 +00:00
|
|
|
|
|
|
|
func TestMultiSig(t *testing.T) {
|
|
|
|
factory := validation.NewFactories()
|
|
|
|
suites.MultiSigActorConstructor(t, factory)
|
|
|
|
suites.MultiSigActorProposeApprove(t, factory)
|
|
|
|
suites.MultiSigActorProposeCancel(t, factory)
|
2019-12-16 11:47:11 +00:00
|
|
|
}
|