2021-05-17 12:28:09 +00:00
|
|
|
package itests
|
2020-10-15 10:15:21 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
|
2021-06-18 18:45:29 +00:00
|
|
|
"github.com/filecoin-project/lotus/itests/kit"
|
2021-06-22 20:25:04 +00:00
|
|
|
"github.com/filecoin-project/lotus/itests/multisig"
|
2020-10-15 10:15:21 +00:00
|
|
|
)
|
|
|
|
|
2021-05-18 20:32:10 +00:00
|
|
|
// TestMultisig does a basic test to exercise the multisig CLI commands
|
2020-10-15 10:15:21 +00:00
|
|
|
func TestMultisig(t *testing.T) {
|
2021-06-18 18:45:29 +00:00
|
|
|
kit.QuietMiningLogs()
|
2020-10-15 10:15:21 +00:00
|
|
|
|
2021-06-14 12:03:08 +00:00
|
|
|
blockTime := 5 * time.Millisecond
|
2021-06-18 18:45:29 +00:00
|
|
|
client, _, ens := kit.EnsembleMinimal(t, kit.MockProofs(), kit.ThroughRPC())
|
2021-06-14 12:03:08 +00:00
|
|
|
ens.InterconnectAll().BeginMining(blockTime)
|
2021-05-18 20:32:10 +00:00
|
|
|
|
2021-06-23 16:33:17 +00:00
|
|
|
multisig.RunMultisigTests(t, client)
|
2020-10-15 10:15:21 +00:00
|
|
|
}
|