2021-05-17 12:28:09 +00:00
|
|
|
package itests
|
2020-10-15 10:15:21 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
|
2021-05-17 12:28:09 +00:00
|
|
|
"github.com/filecoin-project/lotus/cli"
|
2020-10-15 10:15:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// TestMultisig does a basic test to exercise the multisig CLI
|
|
|
|
// commands
|
|
|
|
func TestMultisig(t *testing.T) {
|
|
|
|
_ = os.Setenv("BELLMAN_NO_GPU", "1")
|
2021-05-17 12:28:09 +00:00
|
|
|
QuietMiningLogs()
|
2020-10-15 10:15:21 +00:00
|
|
|
|
|
|
|
blocktime := 5 * time.Millisecond
|
|
|
|
ctx := context.Background()
|
2021-05-17 12:28:09 +00:00
|
|
|
clientNode, _ := StartOneNodeOneMiner(ctx, t, blocktime)
|
|
|
|
RunMultisigTest(t, cli.Commands, clientNode)
|
2020-10-15 10:15:21 +00:00
|
|
|
}
|