Skip to content

Commit

Permalink
Stop using a magic wait time and clean-up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored and willemneal committed Sep 21, 2023
1 parent 624aa8d commit 2f6693f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"os"
"strings"
"testing"
"time"

"github.com/creachadair/jrpc2"
"github.com/creachadair/jrpc2/jhttp"
Expand Down Expand Up @@ -197,7 +196,7 @@ func runSuccessfulCLICmd(t *testing.T, cmd string) string {
return strings.TrimSpace(stdout)
}

func cliCmd(t *testing.T, cmd string) icmd.Cmd {
func runCLICommand(t *testing.T, cmd string) *icmd.Result {
args := []string{"run", "-q", "--", "--vv"}
parsedArgs, err := shlex.Split(cmd)
require.NoError(t, err, cmd)
Expand All @@ -207,7 +206,7 @@ func cliCmd(t *testing.T, cmd string) icmd.Cmd {
fmt.Sprintf("SOROBAN_RPC_URL=http://localhost:%d/", sorobanRPCPort),
fmt.Sprintf("SOROBAN_NETWORK_PASSPHRASE=%s", StandaloneNetworkPassphrase),
)
return c
return icmd.RunCmd(c)
}

func getCLIDefaultAccount(t *testing.T) string {
Expand Down

0 comments on commit 2f6693f

Please sign in to comment.