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