Skip to content

Commit

Permalink
show query mempool failing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBigBoss committed Jul 23, 2023
1 parent 3d2f9b3 commit 45b1142
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/client/cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ func keybaseForCLI() (keybase.Keybase, error) {

func unableToConnectToRpc(err error) error {
fmt.Printf("❌ Unable to connect to the RPC @ %s\n\nError: %s", boldText(flags.RemoteCLIURL), err)
return nil
return fmt.Errorf("unable to connect to the RPC @ %s", flags.RemoteCLIURL)
}

func rpcResponseCodeUnhealthy(statusCode int, response []byte) error {
fmt.Printf("❌ RPC reporting unhealthy status HTTP %d @ %s\n\n%s", statusCode, boldText(flags.RemoteCLIURL), response)
return nil
return fmt.Errorf("RPC reporting unhealthy status HTTP %d @ %s", statusCode, flags.RemoteCLIURL)
}

func boldText[T string | []byte](s T) string {
Expand Down
14 changes: 11 additions & 3 deletions e2e/tests/valdator.feature
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
# TECHDEBT: Validator should eventually be changed to full node or just node.
Feature: Validator Namespace

Scenario: User Wants Help Using The Validator Command
Scenario: User Wants Help Using The Validator Command
Given the user has a validator
When the user runs the command "Validator help"
Then the user should be able to see standard output containing "Available Commands"
And the validator should have exited without error

Scenario: User Can Stake An Address
Scenario: User Can Stake An Address
Given the user has a validator
When the user stakes their validator with amount 150000000001 uPOKT
Then the user should be able to see standard output containing ""
And the validator should have exited without error
And the user runs the command "query UnconfirmedTxs"
And the validator should have exited without error

Scenario: User Can Unstake An Address
Given the user has a validator
When the user stakes their validator with amount 150000000001 uPOKT
Then the user should be able to see standard output containing ""
Then the user should be able to unstake their validator
Then the user should be able to unstake their validator
Then the user should be able to see standard output containing ""
And the validator should have exited without error
And the user runs the command "query UnconfirmedTxs"
And the validator should have exited without error


Scenario: User Can Send To An Address
Given the user has a validator
When the user sends 150000000 uPOKT to another address
Then the user should be able to see standard output containing ""
And the validator should have exited without error
And the user runs the command "query UnconfirmedTxs"
And the validator should have exited without error

0 comments on commit 45b1142

Please sign in to comment.