2020-06-24 10:52:23 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-07-07 12:58:09 +00:00
|
|
|
"github.com/filecoin-project/oni/lotus-soup/paych"
|
2020-07-01 16:29:09 +00:00
|
|
|
"github.com/filecoin-project/oni/lotus-soup/testkit"
|
2020-07-02 15:44:13 +00:00
|
|
|
|
2020-07-07 12:58:09 +00:00
|
|
|
"github.com/testground/sdk-go/run"
|
2020-06-24 10:52:23 +00:00
|
|
|
)
|
|
|
|
|
2020-07-01 16:29:09 +00:00
|
|
|
var cases = map[string]interface{}{
|
2020-07-02 09:49:27 +00:00
|
|
|
"deals-e2e": testkit.WrapTestEnvironment(dealsE2E),
|
|
|
|
"deals-stress-test": testkit.WrapTestEnvironment(dealStressTest),
|
2020-07-02 09:50:49 +00:00
|
|
|
"drand-halting": testkit.WrapTestEnvironment(dealsE2E),
|
2020-07-07 12:58:09 +00:00
|
|
|
"paych-stress": testkit.WrapTestEnvironment(paych.Stress),
|
2020-06-24 10:52:23 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 15:44:13 +00:00
|
|
|
func init() {
|
2020-07-06 17:27:18 +00:00
|
|
|
build.BlockDelaySecs = 2
|
|
|
|
build.PropagationDelaySecs = 4
|
2020-07-07 12:58:09 +00:00
|
|
|
|
|
|
|
_ = logging.SetLogLevel("*", "WARN")
|
|
|
|
_ = logging.SetLogLevel("dht/RtRefreshManager", "ERROR") // noisy
|
|
|
|
_ = logging.SetLogLevel("bitswap", "ERROR") // noisy
|
|
|
|
|
|
|
|
_ = os.Setenv("BELLMAN_NO_GPU", "1")
|
|
|
|
|
|
|
|
build.InsecurePoStValidation = true
|
|
|
|
build.DisableBuiltinAssets = true
|
|
|
|
|
|
|
|
// MessageConfidence is the amount of tipsets we wait after a message is
|
|
|
|
// mined, e.g. payment channel creation, to be considered committed.
|
|
|
|
build.MessageConfidence = 1
|
|
|
|
|
|
|
|
power.ConsensusMinerMinPower = big.NewInt(2048)
|
|
|
|
miner.SupportedProofTypes = map[abi.RegisteredSealProof]struct{}{
|
|
|
|
abi.RegisteredSealProof_StackedDrg2KiBV1: {},
|
|
|
|
}
|
|
|
|
verifreg.MinVerifiedDealSize = big.NewInt(256)
|
|
|
|
|
2020-07-02 15:44:13 +00:00
|
|
|
}
|
|
|
|
|
2020-06-24 10:52:23 +00:00
|
|
|
func main() {
|
2020-07-01 16:29:09 +00:00
|
|
|
run.InvokeMap(cases)
|
2020-06-24 10:52:23 +00:00
|
|
|
}
|