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