-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: lite-mode - CLI tests for
lotus client
commands
- Loading branch information
Showing
15 changed files
with
378 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package cli | ||
|
||
import ( | ||
"context" | ||
"os" | ||
"testing" | ||
"time" | ||
|
||
clitest "github.com/filecoin-project/lotus/cli/test" | ||
) | ||
|
||
// TestClient does a basic test to exercise the client CLI | ||
// commands | ||
func TestClient(t *testing.T) { | ||
_ = os.Setenv("BELLMAN_NO_GPU", "1") | ||
clitest.QuietMiningLogs() | ||
|
||
blocktime := 5 * time.Millisecond | ||
ctx := context.Background() | ||
clientNode, _ := clitest.StartOneNodeOneMiner(ctx, t, blocktime) | ||
clitest.RunClientTest(t, Commands, clientNode) | ||
} |
Oops, something went wrong.